Skip to content

Commit 5af7497

Browse files
authored
Merge pull request #1349 from devtron-labs/fix-overriden-ci-link
fix: overridden CI workflow link breaking
2 parents 50a1710 + 9b75ff1 commit 5af7497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/workflowEditor/Workflow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export class Workflow extends Component<WorkflowProps, WorkflowState> {
286286
} else if (node.isExternalCI) {
287287
url = getExCIPipelineURL(appId, this.props.id.toString(), node.id)
288288
} else {
289-
const currPipeline = this.props.filteredCIPipelines.find((pipeline) => +pipeline.id === +node.id)
289+
const currPipeline = (this.props.filteredCIPipelines ?? []).find((pipeline) => +pipeline.id === +node.id)
290290
url = getCIPipelineURL(
291291
appId,
292292
this.props.id.toString(),

0 commit comments

Comments
 (0)