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
|
||||
const { chartId } = component.meta;
|
||||
const isFocusedFilterChart =
|
||||
focusedFilterScope && chartId === focusedFilterScope.chartId;
|
||||
const includedInFilterScope =
|
||||
focusedFilterScope &&
|
||||
!isFocusedFilterChart &&
|
||||
getChartIdsInFilterScope({
|
||||
filterScope: focusedFilterScope.scope,
|
||||
}).includes(chartId);
|
||||
// const { chartId } = component.meta;
|
||||
// const isFocusedFilterChart =
|
||||
// focusedFilterScope && chartId === focusedFilterScope.chartId;
|
||||
// const includedInFilterScope =
|
||||
// focusedFilterScope &&
|
||||
// !isFocusedFilterChart &&
|
||||
// getChartIdsInFilterScope({
|
||||
// filterScope: focusedFilterScope.scope,
|
||||
// }).includes(chartId);
|
||||
|
||||
return (
|
||||
<DragDroppable
|
||||
|
Loading…
Reference in New Issue
Block a user