From 2277e40290cb7379ec856c470abc04f609be6369 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 20 Sep 2022 16:44:03 +0800 Subject: [PATCH] fix(collection-manager): o2m is array type (cherry picked from commit 5de69d26ea40d95b732989d3b5d987b7e47541a6) --- packages/core/client/src/collection-manager/interfaces/o2m.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/collection-manager/interfaces/o2m.tsx b/packages/core/client/src/collection-manager/interfaces/o2m.tsx index 32dbc3937..9af090a13 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2m.tsx @@ -87,7 +87,7 @@ export const o2m: IField = { }; } else { schema['x-component'] = 'CollectionField'; - schema.type = 'object'; + schema.type = 'array'; if (block === 'Form') { schema['properties'] = {