From dd157e2fd0fe3a0aab6aa1f65e9161af8a9452e3 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 9 Jan 2023 15:41:08 +0800 Subject: [PATCH] fix: shallow merge --- packages/plugins/ui-schema-storage/src/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;