diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index b01d0797b3..40ffb0f489 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -84,7 +84,9 @@ Cypress.Commands.add("addRecord", values => { cy.contains("Create New Row").click() for (let i = 0; i < values.length; i++) { - cy.get("input").eq(i).type(values[i]) + cy.get("input") + .eq(i) + .type(values[i]) } // Save diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index f95360000e..28272d9893 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -87,8 +87,10 @@ export const getBackendUiStore = () => { delete: async model => { await api.delete(`/api/models/${model._id}/${model._rev}`) store.update(state => { - state.models = state.models.filter(existing => existing._id !== model._id) - state.selectedModel = state.models[0] || {} + state.models = state.models.filter( + existing => existing._id !== model._id + ) + state.selectedModel = state.models[0] || {} return state }) }, @@ -111,7 +113,7 @@ export const getBackendUiStore = () => { store.actions.models.save(state.draftModel) return state }) - } + }, }, views: { select: view => diff --git a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte index 8bebccd07d..c7efd29253 100644 --- a/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte +++ b/packages/builder/src/components/database/ModelDataTable/ModelDataTable.svelte @@ -24,7 +24,6 @@ let views = [] let currentPage = 0 let search - let dropdownLeft $: { if ($backendUiStore.selectedView) { diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte deleted file mode 100644 index d50adc2d10..0000000000 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateDatabase.svelte +++ /dev/null @@ -1,40 +0,0 @@ - - -