Update frontend/src/lib/components/HistoricList.svelte

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
pyranota
2025-02-18 00:20:44 +03:00
committed by GitHub
parent 50b9b27b9c
commit 27ca01bda7

View File

@@ -77,7 +77,7 @@
// We cannot apply potential items right after fetch,
// because that would trigger expansion in list
// and old items will be loading by 10 every reload
if (perPageBind != perPage) items.push(...potentialItems), (perPageBind = perPage)
if (perPageBind != perPage) { items.push(...potentialItems); perPageBind = perPage; }
return items
} else {
// Save discovered items to buffer and apply later