Render filtered chapters in ChapterList

Regression 257c0c8e10
This commit is contained in:
schroda
2025-01-16 12:25:24 +01:00
parent 4bf1ac2549
commit ef08799fc0

View File

@@ -241,8 +241,8 @@ export const ChapterList = ({
computeItemKey={(index) => visibleChapters[index].id} computeItemKey={(index) => visibleChapters[index].id}
itemContent={(index: number) => ( itemContent={(index: number) => (
<ChapterCard <ChapterCard
chapter={chapters[index]} chapter={visibleChapters[index]}
selected={!areNoItemsSelected ? selectedItemIds.includes(chapters[index].id) : null} selected={!areNoItemsSelected ? selectedItemIds.includes(visibleChapters[index].id) : null}
showChapterNumber={options.showChapterNumber} showChapterNumber={options.showChapterNumber}
onSelect={onSelect} onSelect={onSelect}
/> />