mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
This reverts commit 88de4109e7
.
This commit is contained in:
parent
c7aee4e27b
commit
d71b8b38d6
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user