File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
client/packages/lowcoder/src/pages/setting/environments/services Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -315,19 +315,20 @@ export async function getWorkspaceDataSources(
315
315
} ;
316
316
317
317
// Make the API request to get data sources
318
- const response = await axios . get < DataSourceWithMeta [ ] > ( `${ apiServiceUrl } /api/datasources/listByOrg` , {
318
+ const response = await axios . get < { data : DataSourceWithMeta [ ] } > ( `${ apiServiceUrl } /api/datasources/listByOrg` , {
319
319
headers,
320
320
params : {
321
321
orgId : workspaceId
322
322
}
323
323
} ) ;
324
-
324
+ console . log ( "data source response" , response ) ;
325
+
325
326
// Check if response is valid
326
327
if ( ! response . data ) {
327
328
return [ ] ;
328
329
}
329
330
330
- return response . data ;
331
+ return response . data . data ;
331
332
} catch ( error ) {
332
333
// Handle and transform error
333
334
const errorMessage = error instanceof Error ? error . message : 'Failed to fetch data sources' ;
You can’t perform that action at this time.
0 commit comments