mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:36:42 +00:00
fix(plugin-workflow): fix fields filter in value assignment nodes (#2469)
This commit is contained in:
parent
39dcb905f4
commit
8528aba694
@ -43,7 +43,7 @@ const CollectionFieldSet = observer(
|
||||
const scope = useWorkflowVariableOptions();
|
||||
const { values: config } = form;
|
||||
const collectionName = config?.collection;
|
||||
const collectionFields = getCollectionFields(collectionName);
|
||||
const collectionFields = getCollectionFields(collectionName).filter((field) => field.uiSchema);
|
||||
const fields = filter ? collectionFields.filter(filter.bind(config)) : collectionFields;
|
||||
|
||||
const unassignedFields = useMemo(() => fields.filter((field) => !value || !(field.name in value)), [fields, value]);
|
||||
|
Loading…
Reference in New Issue
Block a user