Commit daf33738 authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo

Merge branch 'fc-optional-needs-fix-part-2' into 'master'

Prevent error when accessing optional needs in pipeline graph

See merge request gitlab-org/gitlab!62948
parents 4177514e f0b4301d
......@@ -80,7 +80,7 @@ export const makeLinksFromNodes = (nodes, nodeDict) => {
export const getAllAncestors = (nodes, nodeDict) => {
const needs = nodes
.map((node) => {
return nodeDict[node].needs || '';
return nodeDict[node]?.needs || '';
})
.flat()
.filter(Boolean);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment