From d8753aafb959c655c3bfc4b19cf43565b08e5892 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 31 Jan 2023 15:53:04 -0600 Subject: [PATCH] Fix:Series collapse series filter out empty sequences #1450 --- server/controllers/LibraryController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/LibraryController.js b/server/controllers/LibraryController.js index 28b61099..87d28007 100644 --- a/server/controllers/LibraryController.js +++ b/server/controllers/LibraryController.js @@ -319,7 +319,7 @@ class LibraryController { // series represents in the filtered series if (filterSeries) { json.collapsedSeries.seriesSequenceList = - naturalSort(li.collapsedSeries.books.map(b => b.filterSeriesSequence)).asc() + naturalSort(li.collapsedSeries.books.filter(b => b.filterSeriesSequence).map(b => b.filterSeriesSequence)).asc() .reduce((ranges, currentSequence) => { let lastRange = ranges.at(-1) let isNumber = /^(\d+|\d+\.\d*|\d*\.\d+)$/.test(currentSequence)