Skip to content

Commit 6fe9b5f

Browse files
set loading while fetching lowcoder-comps
1 parent 25c3bfb commit 6fe9b5f

File tree

1 file changed

+3
-2
lines changed
  • client/packages/lowcoder/src

1 file changed

+3
-2
lines changed

client/packages/lowcoder/src/app.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,14 @@ const mapDispatchToProps = (dispatch: any) => ({
427427
},
428428
fetchLowcoderCompVersions: async () => {
429429
try {
430-
dispatch(setLowcoderCompsLoading(true));
430+
dispatch(setLowcoderCompsLoading(true));
431431
const packageMeta = await getNpmPackageMeta('lowcoder-comps');
432432
if (packageMeta?.versions) {
433433
dispatch(packageMetaReadyAction('lowcoder-comps', packageMeta));
434434
}
435+
dispatch(setLowcoderCompsLoading(false));
435436
} catch (_) {
436-
dispatch(setLowcoderCompsLoading(false));
437+
dispatch(setLowcoderCompsLoading(false));
437438
}
438439
},
439440
});

0 commit comments

Comments
 (0)