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 May 22, 2021
1 parent 2300392 commit 3b47bd0
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 3b47bd0

Please sign in to comment.