Skip to content

Commit

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

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Signed-off-by: Reddy <Rajshekar.Reddy@lowes.com>
  • Loading branch information
terrytangyuan authored and Reddy committed Jan 2, 2023
1 parent 490285b commit 3e40ea1
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 3e40ea1

Please sign in to comment.