mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:16:26 +00:00
refactor: support third party data souce
This commit is contained in:
parent
f241eebd03
commit
ca094a9856
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user