mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
b98a9a97e8
@ -599,9 +599,9 @@ const associationFieldToMenu = (
|
|||||||
export const useFilterAssociatedFormItemInitializerFields = () => {
|
export const useFilterAssociatedFormItemInitializerFields = () => {
|
||||||
const { name, fields } = useCollection_deprecated();
|
const { name, fields } = useCollection_deprecated();
|
||||||
const { getCollectionFields } = useCollectionManager_deprecated();
|
const { getCollectionFields } = useCollectionManager_deprecated();
|
||||||
const interfaces = ['o2o', 'oho', 'obo', 'm2o', 'm2m'];
|
const excludedInterfaces = ['attachmentURL'];
|
||||||
return fields
|
return fields
|
||||||
?.filter((field) => field.target && field.uiSchema && interfaces.includes(field.interface))
|
?.filter((field) => field.target && field.uiSchema && !excludedInterfaces.includes(field.interface))
|
||||||
.map((field) => associationFieldToMenu(field, field.name, name, getCollectionFields, []))
|
.map((field) => associationFieldToMenu(field, field.name, name, getCollectionFields, []))
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user