Properly check if chapter should be deleted after reading it
In case the current chapter should get deleted after reading it, it only worked in case it was already marked as read due to checking the read status from the chapter itself instead of the chapter update patch input
This commit is contained in:
@@ -78,8 +78,7 @@ export const getChapterIdsToDeleteForChapterUpdate = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const shouldDeleteChapter =
|
const shouldDeleteChapter =
|
||||||
chapterToDeleteUpToDateData.isRead &&
|
patch.isRead && Chapters.isDeletable(chapterToDeleteUpToDateData, deleteChaptersWithBookmark);
|
||||||
Chapters.isDeletable(chapterToDeleteUpToDateData, deleteChaptersWithBookmark);
|
|
||||||
if (!shouldDeleteChapter) {
|
if (!shouldDeleteChapter) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user