Skip to content

Commit

Permalink
fix(dashboard): multiple query trigger when native filter enabled (ap…
Browse files Browse the repository at this point in the history
…ache#14734)

* fix(dashboard): multiple query trigger when native filter enabled

* fix lint

* wip
  • Loading branch information
zhaoyongjie committed May 21, 2021
1 parent 7c17b1a commit 88de410
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -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]);
Expand Down

0 comments on commit 88de410

Please sign in to comment.