fix: correct nextSkip calculation in fetchCatalogPage function

This commit is contained in:
tapframe 2026-04-12 02:17:33 +05:30
parent f01aa05f7b
commit c2da108848

View file

@ -71,7 +71,7 @@ suspend fun fetchCatalogPage(
maxItems = maxItems,
)
val nextSkip = if (parsed.rawItemCount > 0) {
(skip ?: 0) + CATALOG_PAGE_SIZE
(skip ?: 0) + parsed.rawItemCount
} else {
null
}