re-arrange tables store saveField method

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

View File

@ -106,8 +106,8 @@ export function createTablesStore() {
if (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)
return state
})