fix: enable child collections remain after deleting a child collection (#1610)

This commit is contained in:
katherinehhh 2023-03-28 23:58:21 +08:00 committed by GitHub
parent 64b1ee28fd
commit de4beb57a0
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,
default: defaultValues.filter((v) => childrenCollections.find((k) => k.name === v.collection)),
'x-component': 'ArrayItems',
'x-decorator': 'FormItem',
items: {