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(
|
||||
({ chartStatus }) => chartStatus !== 'loading',
|
||||
).length;
|
||||
if (
|
||||
numberOfLoadingCharts > 0 &&
|
||||
numberOfLoadedCharts >= numberOfLoadingCharts
|
||||
) {
|
||||
if (numberOfLoadedCharts >= numberOfLoadingCharts) {
|
||||
setIsInitialized(true);
|
||||
}
|
||||
}, [charts, isInitialized, numberOfLoadingCharts]);
|
||||
|
|
Loading…
Reference in New Issue