Skip to content

Commit

Permalink
fix: Workflow details accessing undefined templateRef. Fixes #9167 (#…
Browse files Browse the repository at this point in the history
…9168)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed Jul 18, 2022
1 parent 6c20202 commit 877f36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/pod-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const getTemplateNameFromNode = (node: NodeStatus): string => {
}

// fall back to v1 pod names if no templateName or templateRef defined
if (!node.templateRef) {
if (node?.templateRef === undefined || node?.templateRef.template === '') {
return '';
}

Expand Down

0 comments on commit 877f36f

Please sign in to comment.