mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
temp: remove possibly expensive computations from ChartHolder
This commit is contained in:
parent
64c88b2cba
commit
37ce0214f0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user