mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
This reverts commit 88de4109e7.
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user