Skip to content

Commit

Permalink
Fix duplication by correct setting startingFromItemIdTop and starting…
Browse files Browse the repository at this point in the history
…FromItemIdBottom
  • Loading branch information
nkonev committed Jul 23, 2023
1 parent 8ad4516 commit d5cc058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend2/src/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
} else {
if (this.isTopDirection()) {
// TODO also use them in reduceListIfNeed
this.startingFromItemIdTop -= PAGE_SIZE;
this.startingFromItemIdTop = Math.min(...this.items.map(it => it.id));
} else {
this.startingFromItemIdBottom += PAGE_SIZE;
this.startingFromItemIdBottom = Math.max(...this.items.map(it => it.id));
}
}
}).then(()=>{
Expand Down

0 comments on commit d5cc058

Please sign in to comment.