mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix:Series collapse series filter out empty sequences #1450
This commit is contained in:
parent
ba5ad228cc
commit
d8753aafb9
@ -319,7 +319,7 @@ class LibraryController {
|
|||||||
// series represents in the filtered series
|
// series represents in the filtered series
|
||||||
if (filterSeries) {
|
if (filterSeries) {
|
||||||
json.collapsedSeries.seriesSequenceList =
|
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) => {
|
.reduce((ranges, currentSequence) => {
|
||||||
let lastRange = ranges.at(-1)
|
let lastRange = ranges.at(-1)
|
||||||
let isNumber = /^(\d+|\d+\.\d*|\d*\.\d+)$/.test(currentSequence)
|
let isNumber = /^(\d+|\d+\.\d*|\d*\.\d+)$/.test(currentSequence)
|
||||||
|
Loading…
Reference in New Issue
Block a user