Skip to content

Commit

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

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

* fix lint

* wip
  • Loading branch information
zhaoyongjie authored May 21, 2021
1 parent 7c17b1a commit 88de410
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
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.