Skip to content

Commit

Permalink
fix: Fix blank workflow details page after workflow submission (argop…
Browse files Browse the repository at this point in the history
…roj#9377)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Aug 16, 2022
1 parent dd8d0f6 commit 65670a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/src/app/shared/conditions-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ export function hasWarningConditionBadge(conditions: Condition[]): boolean {
}

export function hasArtifactGCError(conditions: Condition[]): boolean {
for (const condition of conditions) {
if (condition.type === 'ArtifactGCError') {
return true;
if (conditions) {
for (const condition of conditions) {
if (condition?.type === 'ArtifactGCError') {
return true;
}
}
}

return false;
}

Expand Down

0 comments on commit 65670a4

Please sign in to comment.