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 scope = useWorkflowVariableOptions();
|
||||||
const { values: config } = form;
|
const { values: config } = form;
|
||||||
const collectionName = config?.collection;
|
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 fields = filter ? collectionFields.filter(filter.bind(config)) : collectionFields;
|
||||||
|
|
||||||
const unassignedFields = useMemo(() => fields.filter((field) => !value || !(field.name in value)), [fields, value]);
|
const unassignedFields = useMemo(() => fields.filter((field) => !value || !(field.name in value)), [fields, value]);
|
||||||
|
Loading…
Reference in New Issue
Block a user