From 1c29edb83081bb0f815b0bc9e80b7db0625b4133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Thu, 1 Apr 2021 12:55:09 +0200 Subject: [PATCH] lint fixes --- packages/builder/src/stores/backend/tables.js | 7 +++++-- packages/builder/src/stores/backend/views.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/stores/backend/tables.js b/packages/builder/src/stores/backend/tables.js index ae29ac2ee1..faecf0d753 100644 --- a/packages/builder/src/stores/backend/tables.js +++ b/packages/builder/src/stores/backend/tables.js @@ -106,8 +106,11 @@ export function createTablesStore() { if (indexes) { state.draft.indexes = indexes } - - state.draft.schema = {...state.draft.schema, [field.name]: cloneDeep(field)} + + state.draft.schema = { + ...state.draft.schema, + [field.name]: cloneDeep(field), + } save(state.draft) return state }) diff --git a/packages/builder/src/stores/backend/views.js b/packages/builder/src/stores/backend/views.js index 4c0d273778..d6497bf871 100644 --- a/packages/builder/src/stores/backend/views.js +++ b/packages/builder/src/stores/backend/views.js @@ -36,8 +36,8 @@ export function createViewsStore() { if (view.originalName) delete viewTable.views[view.originalName] viewTable.views[view.name] = viewMeta await tables.save(viewTable) - - update(state => ({...state, selected: viewMeta})) + + update(state => ({ ...state, selected: viewMeta })) }, } }