From 3b541feff25429522df3a2fea67a4c581f277d37 Mon Sep 17 00:00:00 2001 From: Denis Hilt Date: Wed, 22 Nov 2023 19:22:08 +0100 Subject: [PATCH] Negative index cut after fetch --- src/processes/postFetch.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/processes/postFetch.ts b/src/processes/postFetch.ts index 1d27b2f9..52e99c44 100644 --- a/src/processes/postFetch.ts +++ b/src/processes/postFetch.ts @@ -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) =>