Skip to content

Commit

Permalink
fix: Fix dereference of undefined (#1286)
Browse files Browse the repository at this point in the history
Co-authored-by: Vonny Jap <[email protected]>
  • Loading branch information
minghay and VonnyJap authored Dec 10, 2024
1 parent 9434d34 commit 9c3963f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/pipeline/workflow/event-rail/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class PipelineWorkflowEventRailComponent extends Component {
const pipelineId = this.args.pipeline.id;

if (this.isPR) {
if (this.prNums.length === 0) {
if (!this.prNums || this.prNums.length === 0) {
return [];
}

Expand Down

0 comments on commit 9c3963f

Please sign in to comment.