Simplify chapter action id selection
This commit is contained in:
@@ -136,8 +136,8 @@ export const ChapterActionMenuItems = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Chapters.performAction(actualAction, chapter ? [chapter.id] : ChaptersWithMeta.getIds(chaptersWithMeta), {
|
Chapters.performAction(actualAction, Chapters.getIds(chapters), {
|
||||||
chapters: getChapters(),
|
chapters,
|
||||||
wasManuallyMarkedAsRead: true,
|
wasManuallyMarkedAsRead: true,
|
||||||
}).catch(defaultPromiseErrorHandler('ChapterActionMenuItems::performAction'));
|
}).catch(defaultPromiseErrorHandler('ChapterActionMenuItems::performAction'));
|
||||||
onClose();
|
onClose();
|
||||||
|
|||||||
Reference in New Issue
Block a user