1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

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

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
})