Skip to content

Commit

Permalink
fix external datasources again
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla committed Jul 24, 2024
1 parent cbd707c commit d123a21
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/plugins/data/public/ui/dataset_navigator/dataset_navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,16 @@ export const DataSetNavigator = (props: DataSetNavigatorProps) => {
} else if (
externalDataSourcesCache.status === CachedDataSourceStatus.Updated
) {
await handleSelectExternalDataSource(
externalDataSourcesCache.externalDataSources.map((ds) => ({
id: ds.dataSourceRef,
name: ds.name,
type: SIMPLE_DATA_SOURCE_TYPES.EXTERNAL,
}))
);
setNavigatorState((prevState) => ({
...prevState,
externalDataSources: externalDataSourcesCache.externalDataSources.map(
(ds) => ({
id: ds.name,
name: ds.name,
type: SIMPLE_DATA_SOURCE_TYPES.EXTERNAL,
})
),
}));
}
},
},
Expand Down

0 comments on commit d123a21

Please sign in to comment.