fix: enable child collections remain after deleting a child collection (#1610)
This commit is contained in:
parent
64b1ee28fd
commit
de4beb57a0
@ -44,7 +44,7 @@ export const EnableChildCollections = observer((props: any) => {
|
|||||||
properties: {
|
properties: {
|
||||||
childrenCollections: {
|
childrenCollections: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
default: defaultValues,
|
default: defaultValues.filter((v) => childrenCollections.find((k) => k.name === v.collection)),
|
||||||
'x-component': 'ArrayItems',
|
'x-component': 'ArrayItems',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
items: {
|
items: {
|
||||||
|
Loading…
Reference in New Issue
Block a user