diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx index 9153c5fe89..878982d901 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx @@ -229,7 +229,14 @@ const AddFieldAction = (props) => { const { availableFieldInterfaces } = getTemplate(record.template) || {}; const { exclude, include } = availableFieldInterfaces || {}; const optionArr = []; + fieldOptions.forEach((v) => { + if (v.children.find((h) => h.allowExternalCreation)) { + optionArr.push({ + ...v, + children: v.children.filter((h) => h.allowExternalCreation), + }); + } if (v.key === 'relation') { let children = []; if (include?.length) {