Allow partial response for Reader chapter update
It's possible that the "trackProgress" mutation of the "updateChapters" mutation fails, which then would lead to the "mark as read" and "delete chapter" mutation data to be omitted, thus, preventing the cache from being updated with the received mutation data response
This commit is contained in:
@@ -314,14 +314,18 @@ export function Reader() {
|
||||
: [chapter.id];
|
||||
|
||||
requestManager
|
||||
.updateChapters(chapterIds, {
|
||||
.updateChapters(
|
||||
chapterIds,
|
||||
{
|
||||
...patch,
|
||||
chapterIdsToDelete: getChapterIdsToDelete(),
|
||||
trackProgressMangaId:
|
||||
metadataSettings.updateProgressAfterReading && patch.isRead && manga.trackRecords.totalCount
|
||||
? manga.id
|
||||
: undefined,
|
||||
})
|
||||
},
|
||||
{ errorPolicy: 'all' },
|
||||
)
|
||||
.response.catch(defaultPromiseErrorHandler('Reader::updateChapter'));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user