mirror of https://github.com/apache/superset.git
fix(dashboard): multiple query trigger when native filter enabled (#14734)
* fix(dashboard): multiple query trigger when native filter enabled * fix lint * wip
This commit is contained in:
parent
7c17b1a97f
commit
88de4109e7
|
@ -107,10 +107,7 @@ export const useInitialization = () => {
|
||||||
const numberOfLoadedCharts = Object.values(charts).filter(
|
const numberOfLoadedCharts = Object.values(charts).filter(
|
||||||
({ chartStatus }) => chartStatus !== 'loading',
|
({ chartStatus }) => chartStatus !== 'loading',
|
||||||
).length;
|
).length;
|
||||||
if (
|
if (numberOfLoadedCharts >= numberOfLoadingCharts) {
|
||||||
numberOfLoadingCharts > 0 &&
|
|
||||||
numberOfLoadedCharts >= numberOfLoadingCharts
|
|
||||||
) {
|
|
||||||
setIsInitialized(true);
|
setIsInitialized(true);
|
||||||
}
|
}
|
||||||
}, [charts, isInitialized, numberOfLoadingCharts]);
|
}, [charts, isInitialized, numberOfLoadingCharts]);
|
||||||
|
|
Loading…
Reference in New Issue