Skip to content

Commit bed5f55

Browse files
committed
Removed unnessary API calling (folders/elements) when first loading.
1 parent 32b3c3b commit bed5f55

File tree

1 file changed

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

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,6 @@ 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-
217210
if (fetchingUser || !isPreloadCompleted) {
218211
return <ProductLoading />;
219212
}

0 commit comments

Comments
 (0)