fix(634): keep the 0-based lesson at the call site

The #616 comment this call site carried recorded WHY it reads `pageNum: 0` — a
previous version passed 1 and skipped the whole first page. Rewriting the call for
#634 dropped it. Restore it next to the new paging loop, which also starts its
follow-up requests at 1 and is only correct because the first page is 0.
This commit is contained in:
2026-07-26 11:11:33 +02:00
parent bcbdc9c976
commit f9164b71af
+5
View File
@@ -46,6 +46,11 @@ const DIRTY_PROMPT = 'You have unsaved schedule changes. Discard them?';
// requested, so a single `pageSize: 1000` request only ever returns the first 100 rows. Page to
// completeness against totalCount instead of raising the server cap (api.search-allitems-paging
// precedent — the client pages, the server stays bounded). Mirrors CollectionsScreen.enterReorder.
//
// `pageNum` is 0-BASED here and everywhere on /api/v1 (api.paging-zero-based): the first page is 0,
// so the loop below starts its follow-up requests at 1. This call previously passed `pageNum: 1`,
// which skipped the first page entirely and showed nothing at all for the normal case of <=100
// rerun collections (ersatztv#616) — the same call site, one defect earlier.
const RERUN_PAGE_SIZE = 100;
async function loadAllRerunCollections(): Promise<RerunCollection[]> {