diff --git a/packages/builder/src/stores/backend/tables.js b/packages/builder/src/stores/backend/tables.js index 57acdb6750..ae29ac2ee1 100644 --- a/packages/builder/src/stores/backend/tables.js +++ b/packages/builder/src/stores/backend/tables.js @@ -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 })