File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
client/packages/lowcoder/src/pages/editor Expand file tree Collapse file tree 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() {
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 ) ;
You can’t perform that action at this time.
0 commit comments