Skip to content

Commit

Permalink
Negative index cut after fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilt committed Nov 22, 2023
1 parent ae8416f commit 3b541fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/processes/postFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export default class PostFetch extends BaseProcessFactory(CommonProcess.postFetc
if (cycle.innerLoop.isInitial) {
// let's treat initial poor fetch as startIndex-bof
fetchIndex = buffer.startIndex;
} else if (fetch.first.index < buffer.minIndex) { // normal bof
fetchIndex = buffer.minIndex - items.length;
} else if (fetch.first.index < buffer.minIndex) {
// normal bof
fetchIndex = buffer.firstIndex - items.length;
}
}
fetch.items = items.map((item, index: number) =>
Expand Down

0 comments on commit 3b541fe

Please sign in to comment.