aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/PieChart.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-08-08 14:25:18 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-08-08 14:25:18 -0400
commit5614478b54b754665faff41c9a09b9bd0535e2f5 (patch)
treeaabffcb38b6e178cd60ca10e16943d9a094d0bfc /src/client/views/nodes/DataVizBox/components/PieChart.tsx
parentb44722cc4e35b994ad50d47cf2586785b3e0ab2d (diff)
histogram bug fixes
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/PieChart.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/PieChart.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/PieChart.tsx b/src/client/views/nodes/DataVizBox/components/PieChart.tsx
index 913bdd9a4..0fd4f6b54 100644
--- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx
+++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx
@@ -245,7 +245,7 @@ export class PieChart extends React.Component<PieChartProps> {
var showSelected = this.byCategory? pieDataSet[index] : this._piechartData[index];
if (changeSelectedVariables){
- sameAsCurrent = (this.byCategory && this._currSelected)?
+ sameAsCurrent = (this._currSelected)?
(showSelected[Object.keys(showSelected)[0]]==this._currSelected![Object.keys(showSelected)[0]]
&& showSelected[Object.keys(showSelected)[1]]==this._currSelected![Object.keys(showSelected)[1]])
: