diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte index 45ff66a901..453cdced51 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte @@ -22,10 +22,11 @@ const selected = $datasources.selected === datasource._id const open = openDataSources.includes(datasource._id) const containsSelected = containsActiveEntity(datasource) + const onlySource = $datasources.list.length === 1 return { ...datasource, selected, - open: selected || open || containsSelected, + open: selected || open || containsSelected || onlySource, } }) : []