Skip to content

Commit

Permalink
Fix: existential safety
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Aug 22, 2024
1 parent 42be88d commit 6a20077
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function WorkflowSelectionDialog ({

const subjectSetsLinkedToSubject = subject?.links?.subject_sets
const validWorkflows = workflows.filter(wf => (
wf.links?.subject_sets.some(sset => subjectSetsLinkedToSubject?.includes(sset))
wf.links?.subject_sets?.some(sset => subjectSetsLinkedToSubject?.includes(sset))
))
// Note: only active workflows are saved in the store, so we don't need to
// filter for workflow.active = true.
Expand Down

0 comments on commit 6a20077

Please sign in to comment.