Feature/request manager make requests abortable (#316)
* Make requests abortable * Make requests abortable - Fix usage
This commit is contained in:
@@ -71,7 +71,7 @@ const ChapterCard: React.FC<IProps> = (props: IProps) => {
|
||||
[key]: value,
|
||||
lastPageRead: key === 'read' ? 0 : undefined,
|
||||
})
|
||||
.then(() => triggerChaptersUpdate());
|
||||
.response.then(() => triggerChaptersUpdate());
|
||||
};
|
||||
|
||||
const downloadChapter = () => {
|
||||
@@ -82,7 +82,7 @@ const ChapterCard: React.FC<IProps> = (props: IProps) => {
|
||||
const deleteChapter = () => {
|
||||
requestManager
|
||||
.removeChapterFromDownloadQueue(chapter.mangaId, chapter.index)
|
||||
.then(() => triggerChaptersUpdate());
|
||||
.response.then(() => triggerChaptersUpdate());
|
||||
handleClose();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user