Skip to content

Commit 326d27e

Browse files
committed
Fixed an issue that app does not move to folder.
1 parent 6f9b821 commit 326d27e

File tree

1 file changed

+7
-0
lines changed
  • client/packages/lowcoder/src/pages/ApplicationV2

1 file changed

+7
-0
lines changed

client/packages/lowcoder/src/pages/ApplicationV2/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ export default function ApplicationHome() {
207207
user.currentOrgId && dispatch(fetchAllApplications({}));
208208
}, [dispatch, allAppCount, user.currentOrgId]);
209209

210+
useEffect(() => {
211+
if (allFoldersCount !== 0) {
212+
return;
213+
}
214+
user.currentOrgId && dispatch(fetchFolderElements({}));
215+
}, [dispatch, allFoldersCount, user.currentOrgId]);
216+
210217
if (fetchingUser || !isPreloadCompleted) {
211218
return <ProductLoading />;
212219
}

0 commit comments

Comments
 (0)