Skip to content

Commit

Permalink
Revert "fix(dashboard): multiple query trigger when native filter ena…
Browse files Browse the repository at this point in the history
…bled (apache#14734)" (apache#14762)

This reverts commit 88de410.
  • Loading branch information
zhaoyongjie authored and cccs-RyanS committed Dec 17, 2021
1 parent 0cfa337 commit 8ae0978
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -107,7 +107,10 @@ export const useInitialization = () => {
const numberOfLoadedCharts = Object.values(charts).filter(
({ chartStatus }) => chartStatus !== 'loading',
).length;
if (numberOfLoadedCharts >= numberOfLoadingCharts) {
if (
numberOfLoadingCharts > 0 &&
numberOfLoadedCharts >= numberOfLoadingCharts
) {
setIsInitialized(true);
}
}, [charts, isInitialized, numberOfLoadingCharts]);
Expand Down

0 comments on commit 8ae0978

Please sign in to comment.