From a96c51afcbfaa1f92672625fe4cbc987324f2659 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 2 Jun 2020 09:36:21 +0100 Subject: [PATCH] auto select first model on startup --- packages/builder/src/builderStore/store/backend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index 0a06778566..a0ee353a77 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -22,6 +22,7 @@ export const getBackendUiStore = () => { const views = await viewsResponse.json() store.update(state => { state.selectedDatabase = db + state.selectedModel = models && models.length > 0 && models[0] state.breadcrumbs = [db.name] state.models = models state.views = views