diff --git a/web/src/containers/job/Job.jsx b/web/src/containers/job/Job.jsx index c12449dba5..602a51e457 100644 --- a/web/src/containers/job/Job.jsx +++ b/web/src/containers/job/Job.jsx @@ -40,7 +40,7 @@ class Job extends React.Component { for one branch we don't get the branches. This might be a bug. In this case, use the source context branch (i.e. where it's defined */ - if (variant.branches.length === 0) { + if (variant.branches === null || variant.branches.length === 0) { title = variant.source_context.branch } else { variant.branches.forEach((item) => {