From 81ac73299a748004b37dc6a3f1bb14e2a53d0b4f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 6 Jul 2024 02:34:56 +0300 Subject: [PATCH] Fixed: Bulk series deletion for unmonitored series Closes #6933 --- .../Select/Delete/DeleteSeriesModalContent.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/Series/Index/Select/Delete/DeleteSeriesModalContent.tsx b/frontend/src/Series/Index/Select/Delete/DeleteSeriesModalContent.tsx index ea35657e3..eb26675c6 100644 --- a/frontend/src/Series/Index/Select/Delete/DeleteSeriesModalContent.tsx +++ b/frontend/src/Series/Index/Select/Delete/DeleteSeriesModalContent.tsx @@ -88,8 +88,7 @@ function DeleteSeriesModalContent(props: DeleteSeriesModalContentProps) { const { totalEpisodeFileCount, totalSizeOnDisk } = useMemo(() => { return series.reduce( - (acc, s) => { - const { statistics = { episodeFileCount: 0, sizeOnDisk: 0 } } = s; + (acc, { statistics = {} }) => { const { episodeFileCount = 0, sizeOnDisk = 0 } = statistics; acc.totalEpisodeFileCount += episodeFileCount; @@ -155,17 +154,17 @@ function DeleteSeriesModalContent(props: DeleteSeriesModalContentProps) {