auto select first model on startup

This commit is contained in:
Michael Shanks 2020-06-02 09:36:21 +01:00
parent 9b55870c24
commit 57a917f9d9
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export const getBackendUiStore = () => {
const views = await viewsResponse.json() const views = await viewsResponse.json()
store.update(state => { store.update(state => {
state.selectedDatabase = db state.selectedDatabase = db
state.selectedModel = models && models.length > 0 && models[0]
state.breadcrumbs = [db.name] state.breadcrumbs = [db.name]
state.models = models state.models = models
state.views = views state.views = views