From a47385811061be67e65913627ec2134a5c330f69 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sun, 22 Mar 2020 13:05:58 +0000 Subject: [PATCH] tidy up --- packages/builder/src/builderStore/store/backend.js | 2 +- .../ModelDataTable/modals/CreateEditView.svelte | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index c4c1e19f99..b498ac1653 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -34,7 +34,7 @@ export const getBackendUiStore = () => { store.actions = { navigate: name => store.update(state => ({ ...state, leftNavItem: name })), database: { - select: state => store.update(state => ({ ...state, selectedDatabase: state })), + select: db => store.update(state => ({ ...state, selectedDatabase: db })), }, records: { delete: record => store.update(state => { diff --git a/packages/builder/src/database/ModelDataTable/modals/CreateEditView.svelte b/packages/builder/src/database/ModelDataTable/modals/CreateEditView.svelte index c4195d2fdf..067fa1fd51 100644 --- a/packages/builder/src/database/ModelDataTable/modals/CreateEditView.svelte +++ b/packages/builder/src/database/ModelDataTable/modals/CreateEditView.svelte @@ -5,9 +5,6 @@ import ActionsHeader from "../../ActionsHeader.svelte" import * as api from "../api" - export let modalOpen = false - export let onClosed - let recordInfo = {} @@ -15,11 +12,4 @@
- -