Fix app crash when downloading novel entry if it is on the recent updates page (#1395)

This commit is contained in:
Adam Kemish
2025-01-21 00:23:07 +08:00
committed by GitHub
parent 659988330c
commit c61c4d0105
@@ -112,7 +112,7 @@ const UpdateNovelCard: React.FC<UpdateCardProps> = ({
<ChapterItem
isLocal={false}
isDownloading={downloadQueue.some(
c => c.data.chapterId === item.id,
c => c.task.data.chapterId === item.id,
)}
isUpdateCard
novelName={chapterList[0].novelName}
@@ -142,7 +142,7 @@ const UpdateNovelCard: React.FC<UpdateCardProps> = ({
<ChapterItem
isLocal={false}
isDownloading={downloadQueue.some(
c => c.data.chapterId === chapterList[0].id,
c => c.task.data.chapterId === chapterList[0].id,
)}
isUpdateCard
novelName={chapterList[0].novelName}