Use correct endpoint for deleting downloaded chapter (#351)

Instead of deleting the downloaded chapter, a request was made to remove the download from the download queue
This commit is contained in:
schroda
2023-06-05 01:23:40 +02:00
committed by GitHub
parent bc99728dcd
commit 00e403ce09

View File

@@ -81,7 +81,7 @@ const ChapterCard: React.FC<IProps> = (props: IProps) => {
const deleteChapter = () => {
requestManager
.removeChapterFromDownloadQueue(chapter.mangaId, chapter.index)
.deleteDownloadedChapter(chapter.mangaId, chapter.index)
.response.then(() => triggerChaptersUpdate());
handleClose();
};