diff --git a/packages/plugins/ui-schema-storage/src/repository.ts b/packages/plugins/ui-schema-storage/src/repository.ts index 0d3d28e8cf..5c85b65dd8 100644 --- a/packages/plugins/ui-schema-storage/src/repository.ts +++ b/packages/plugins/ui-schema-storage/src/repository.ts @@ -340,7 +340,7 @@ export class UiSchemaRepository extends Repository { await this.clearXUidPathCache(rootUid, transaction); if (!newSchema['properties']) { const s = await this.model.findByPk(rootUid, { transaction }); - s.set({ ...s.toJSON(), ...newSchema }); + s.set('schema', { ...s.toJSON(), ...newSchema }); // console.log(s.toJSON()); await s.save({ transaction, hooks: false }); return;