Skip to content

Commit

Permalink
CM-726: added changes in picker workflow (#58)
Browse files Browse the repository at this point in the history
* CM-726: added changes in picker workflow

* CM-726: added changes in picker workflow 2
  • Loading branch information
sniedzielski authored Mar 12, 2024
1 parent 9d9bf28 commit 21020d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pickers/WorkflowsPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 21020d2

Please sign in to comment.