web: check if job has parent
This change prevents exception when trying to display the jobs list without a parent. Change-Id: I1fed7ba1950ed097478988752f99c668802094b2
This commit is contained in:
parent
6805f8725c
commit
1787d6a225
|
@ -88,7 +88,9 @@ class JobsList extends React.Component {
|
|||
// Visit parent recursively
|
||||
if (!flatten) {
|
||||
for (let parent of parents) {
|
||||
getNode(jobMap[parent], filtered)
|
||||
if (jobMap[parent]) {
|
||||
getNode(jobMap[parent], filtered)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue