Skip to content

Commit

Permalink
fix(ui): ensure that the artifacts property exists before inspecting …
Browse files Browse the repository at this point in the history
…it (argoproj#5977)

Fixes argoproj#5966

Signed-off-by: Daniel Herman <[email protected]>
  • Loading branch information
dcherman committed May 23, 2021
1 parent 079a506 commit 453086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/services/workflows-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class WorkflowsService {
private hasArtifactLogs(workflow: Workflow, nodeId: string, container: string) {
const node = workflow.status.nodes[nodeId];

if (!node || !node.outputs) {
if (!node || !node.outputs || !node.outputs.artifacts) {
return false;
}

Expand Down

0 comments on commit 453086f

Please sign in to comment.