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}
itemContent={(index: number) => (
<ChapterCard
chapter={chapters[index]}
selected={!areNoItemsSelected ? selectedItemIds.includes(chapters[index].id) : null}
chapter={visibleChapters[index]}
selected={!areNoItemsSelected ? selectedItemIds.includes(visibleChapters[index].id) : null}
showChapterNumber={options.showChapterNumber}
onSelect={onSelect}
/>