fix: select record can not enable child collection (#1649)

This commit is contained in:
katherinehhh 2023-04-04 17:47:31 +08:00 committed by GitHub
parent cfd9ae3a65
commit c4ef0dea8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {