From 7325212b8eb87d0c8c855416ff7e6bf0378486fe Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 20 Apr 2024 22:49:47 +0200 Subject: [PATCH] Simplify chapter action id selection --- src/components/chapter/ChapterActionMenuItems.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/chapter/ChapterActionMenuItems.tsx b/src/components/chapter/ChapterActionMenuItems.tsx index ef50418a..f9075895 100644 --- a/src/components/chapter/ChapterActionMenuItems.tsx +++ b/src/components/chapter/ChapterActionMenuItems.tsx @@ -136,8 +136,8 @@ export const ChapterActionMenuItems = ({ return; } - Chapters.performAction(actualAction, chapter ? [chapter.id] : ChaptersWithMeta.getIds(chaptersWithMeta), { - chapters: getChapters(), + Chapters.performAction(actualAction, Chapters.getIds(chapters), { + chapters, wasManuallyMarkedAsRead: true, }).catch(defaultPromiseErrorHandler('ChapterActionMenuItems::performAction')); onClose();