re-arrange tables store saveField method

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-01 12:45:06 +02:00
parent 7c6fc51e80
commit 2e13c5f10e
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export function createTablesStore() {
state.draft.indexes = indexes state.draft.indexes = indexes
} }
state.draft.schema[field.name] = cloneDeep(field) state.draft.schema = {...state.draft.schema, [field.name]: cloneDeep(field)}
save(state.draft) save(state.draft)
return state return state
}) })