Simplify chapter action id selection

This commit is contained in:
schroda
2024-04-20 22:49:47 +02:00
parent a1c0ec82b8
commit 7325212b8e

View File

@@ -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();