Skip to content

Commit e45d6cd

Browse files
fixed showDataLoadingIndicator error on charts
1 parent b01612c commit e45d6cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/generators/withIsLoading.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const LoadingWrapper = ({
4040

4141
const showLoading = useMemo(() => {
4242
const themeDataIndicator = currentTheme?.showDataLoadingIndicators;
43-
const compDataIndicator = compState.comp?.comp.showDataLoadingIndicators;
43+
const compDataIndicator = compState.comp?.comp?.showDataLoadingIndicators;
4444

4545
return isLoading ? (
4646
compDataIndicator !== 'undefined' ? compDataIndicator : Boolean(themeDataIndicator)
4747
) : false;
4848
}, [
4949
isLoading,
5050
currentTheme?.showDataLoadingIndicators,
51-
compState.comp?.comp.showDataLoadingIndicators,
51+
compState.comp?.comp?.showDataLoadingIndicators,
5252
]);
5353

5454
if (currentTheme?.dataLoadingIndicator === 'skeleton') {

0 commit comments

Comments
 (0)