From 13bc5076ce881174685849221a741ee93581b42e Mon Sep 17 00:00:00 2001 From: Ming Hay Luk Date: Mon, 9 Dec 2024 13:19:07 -0800 Subject: [PATCH] Fix dereference of undefined --- app/components/pipeline/workflow/event-rail/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/pipeline/workflow/event-rail/component.js b/app/components/pipeline/workflow/event-rail/component.js index 474fb99a4..78a1a88a1 100644 --- a/app/components/pipeline/workflow/event-rail/component.js +++ b/app/components/pipeline/workflow/event-rail/component.js @@ -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 []; }