diff --git a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx index 4642903ac..45b9c7080 100644 --- a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx +++ b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx @@ -44,7 +44,7 @@ export const EnableChildCollections = observer((props: any) => { properties: { childrenCollections: { type: 'array', - default: defaultValues.filter((v) => childrenCollections.find((k) => k.name === v.collection)), + default: defaultValues?.filter((v) => childrenCollections.find((k) => k.name === v.collection)), 'x-component': 'ArrayItems', 'x-decorator': 'FormItem', items: {