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 (#14734)" (#14762)

This reverts commit 88de410.
  • Loading branch information
zhaoyongjie authored May 22, 2021
1 parent c7aee4e commit d71b8b3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 d71b8b3

Please sign in to comment.