File tree 1 file changed +4
-4
lines changed
client/packages/lowcoder/src/pages/editor
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,17 +95,16 @@ export default function AppEditor() {
95
95
dispatch ( fetchQueryLibraryDropdown ( ) ) ;
96
96
}
97
97
} , [ dispatch , applicationId , paramViewMode ] ) ;
98
-
99
- useEffect ( ( ) => {
100
- if ( ! currentUser ?. id ) return ;
98
+
99
+ const fetchJSDataSourceByApp = ( ) => {
101
100
DatasourceApi . fetchJsDatasourceByApp ( applicationId ) . then ( ( res ) => {
102
101
res . data . data . forEach ( ( i ) => {
103
102
registryDataSourcePlugin ( i . type , i . id , i . pluginDefinition ) ;
104
103
} ) ;
105
104
setIsDataSourcePluginRegistered ( true ) ;
106
105
} ) ;
107
106
dispatch ( setShowAppSnapshot ( false ) ) ;
108
- } , [ applicationId , dispatch , currentUser ] ) ;
107
+ } ;
109
108
110
109
useEffect ( ( ) => {
111
110
if ( ! fetchOrgGroupsFinished ) {
@@ -129,6 +128,7 @@ export default function AppEditor() {
129
128
} ,
130
129
} ) ;
131
130
setAppInfo ( info ) ;
131
+ fetchJSDataSourceByApp ( ) ;
132
132
} ,
133
133
} )
134
134
) ;
You can’t perform that action at this time.
0 commit comments