Fix:Series collapse series filter out empty sequences #1450

This commit is contained in:
advplyr 2023-01-31 15:53:04 -06:00
parent ba5ad228cc
commit d8753aafb9

View File

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