Skip to content

Commit

Permalink
fix(ui): remove duplicate log attempt (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye authored and brian-mulier-p committed Aug 7, 2023
1 parent ceda973 commit b505dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/components/logs/LogList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@
if (this.logsToOpenParent) {
return this.logsToOpenParent
}
switch(localStorage.getItem("logDisplay") || logDisplayTypes.DEFAULT){
switch(localStorage.getItem("logDisplay") || logDisplayTypes.DEFAULT) {
case logDisplayTypes.ERROR:
return [State.FAILED, State.RUNNING, State.PAUSED]
case logDisplayTypes.ALL:
Expand Down Expand Up @@ -465,7 +466,7 @@
}
},
attempts(taskRun) {
if (this.execution.state.current === State.RUNNING || !this.attemptNumber) {
if (this.execution.state.current === State.RUNNING || this.attemptNumber === undefined) {
return taskRun.attempts ?? [{state: taskRun.state}];
}
Expand Down

0 comments on commit b505dd2

Please sign in to comment.