This commit is contained in:
Andrew Kingston 2023-06-27 14:25:09 +01:00
parent a7c6f9a60a
commit 8587aef506
1 changed files with 1 additions and 3 deletions

View File

@ -58,9 +58,7 @@ export function createDatasourcesStore() {
...$store,
list,
selected: list?.find(ds => ds._id === $store.selectedDatasourceId),
hasDefaultData: list?.some(
datasource => datasource._id === DEFAULT_BB_DATASOURCE_ID
),
hasDefaultData: list?.some(ds => ds._id === DEFAULT_BB_DATASOURCE_ID),
hasData: list?.length > 0,
}
})