temp: remove possibly expensive computations from ChartHolder

This commit is contained in:
David Aaron Suddjian 2020-10-15 18:22:03 -07:00
parent 64c88b2cba
commit 37ce0214f0

View File

@ -211,15 +211,15 @@ class ChartHolder extends React.Component {
} }
// figure out if this chart is in the focused filter's scope // figure out if this chart is in the focused filter's scope
const { chartId } = component.meta; // const { chartId } = component.meta;
const isFocusedFilterChart = // const isFocusedFilterChart =
focusedFilterScope && chartId === focusedFilterScope.chartId; // focusedFilterScope && chartId === focusedFilterScope.chartId;
const includedInFilterScope = // const includedInFilterScope =
focusedFilterScope && // focusedFilterScope &&
!isFocusedFilterChart && // !isFocusedFilterChart &&
getChartIdsInFilterScope({ // getChartIdsInFilterScope({
filterScope: focusedFilterScope.scope, // filterScope: focusedFilterScope.scope,
}).includes(chartId); // }).includes(chartId);
return ( return (
<DragDroppable <DragDroppable