Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b9285dd

Browse files
Fixing blank page in /view for anonymous
1 parent 5220ff8 commit b9285dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎client/packages/lowcoder/src/pages/editor/AppEditor.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,16 @@ export default function AppEditor() {
9595
dispatch(fetchQueryLibraryDropdown());
9696
}
9797
}, [dispatch, applicationId, paramViewMode]);
98-
99-
useEffect(() => {
100-
if (!currentUser?.id) return;
98+
99+
const fetchJSDataSourceByApp = () => {
101100
DatasourceApi.fetchJsDatasourceByApp(applicationId).then((res) => {
102101
res.data.data.forEach((i) => {
103102
registryDataSourcePlugin(i.type, i.id, i.pluginDefinition);
104103
});
105104
setIsDataSourcePluginRegistered(true);
106105
});
107106
dispatch(setShowAppSnapshot(false));
108-
},[applicationId,dispatch,currentUser]);
107+
};
109108

110109
useEffect(() => {
111110
if (!fetchOrgGroupsFinished) {
@@ -129,6 +128,7 @@ export default function AppEditor() {
129128
},
130129
});
131130
setAppInfo(info);
131+
fetchJSDataSourceByApp();
132132
},
133133
})
134134
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /