Skip to content

Commit

Permalink
fix: wrong filteredTaskCheckRunList (#1272)
Browse files Browse the repository at this point in the history
Former-commit-id: 2cb6f4e
  • Loading branch information
rebelice authored and d-bytebase committed May 12, 2022
1 parent f3e30ab commit 98e540d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/Issue/TaskCheckBadgeBar.vue
Expand Up @@ -155,10 +155,10 @@ export default defineComponent({
const result: TaskCheckRun[] = [];
for (const run of props.taskCheckRunList) {
const index = result.findIndex((item) => item.type == run.type);
if (index >= 0 && result[index].updatedTs < run.updatedTs) {
result[index] = run;
} else {
if (index < 0) {
result.push(run);
} else if (result[index].updatedTs < run.updatedTs) {
result[index] = run;
}
}
Expand Down

0 comments on commit 98e540d

Please sign in to comment.