From 8587aef50624ffb6661ee4012036585320a4c797 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 27 Jun 2023 14:25:09 +0100 Subject: [PATCH] Tidy --- packages/builder/src/stores/backend/datasources.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/builder/src/stores/backend/datasources.js b/packages/builder/src/stores/backend/datasources.js index bce92daced..16128d38fb 100644 --- a/packages/builder/src/stores/backend/datasources.js +++ b/packages/builder/src/stores/backend/datasources.js @@ -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, } })