From 21020d283fff305b0fda0858cbbc7ef7f1fccb73 Mon Sep 17 00:00:00 2001 From: sniedzielski <52816247+sniedzielski@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:57:58 +0100 Subject: [PATCH] CM-726: added changes in picker workflow (#58) * CM-726: added changes in picker workflow * CM-726: added changes in picker workflow 2 --- src/pickers/WorkflowsPicker.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pickers/WorkflowsPicker.js b/src/pickers/WorkflowsPicker.js index 43d80d6..df65a5b 100644 --- a/src/pickers/WorkflowsPicker.js +++ b/src/pickers/WorkflowsPicker.js @@ -14,10 +14,12 @@ function WorkflowsPicker({ withLabel = true, }) { const options = Array.isArray(workflows) && workflows !== undefined ? [ - ...workflows.map((workflows) => ({ - value: { name: workflows.name, group: workflows.group }, - label: workflows.name, - })), + ...workflows + .filter((workflow) => workflow.group === 'individual' && !workflow.name.includes('Valid')) + .map((workflow) => ({ + value: { name: workflow.name, group: workflow.group }, + label: workflow.name, + })), ] : []; useEffect(() => {