From 4244185b531d08f8a4f065cb8514f42e41e93980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 23 Mar 2021 12:19:10 +0100 Subject: [PATCH] remove unused stuff in backendUiStore --- packages/builder/src/builderStore/store/backend.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index 62826b3b61..967f9c7545 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -1,20 +1,9 @@ import { writable } from "svelte/store" -import api from "../api" - -const INITIAL_BACKEND_UI_STATE = { - tables: [], - views: [], - datasources: [], - selectedDatabase: {}, - selectedTable: {}, - draftTable: {}, -} export const getBackendUiStore = () => { - const store = writable({ ...INITIAL_BACKEND_UI_STATE }) + const store = writable({}) store.actions = { - reset: () => store.set({ ...INITIAL_BACKEND_UI_STATE }), rows: { save: () => store.update(state => {