1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

remove unused stuff in backendUiStore

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-23 12:19:10 +01:00
parent b4f5522a5e
commit 4244185b53

View file

@ -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 => {