mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix:Revert calculating total entities
This commit is contained in:
parent
1fe4cffd3b
commit
4d2bcfd167
@ -190,15 +190,15 @@ class LibraryController {
|
|||||||
libraryItems = collapsedItems
|
libraryItems = collapsedItems
|
||||||
|
|
||||||
// Get accurate total entities
|
// Get accurate total entities
|
||||||
let uniqueEntities = new Set()
|
// let uniqueEntities = new Set()
|
||||||
libraryItems.forEach((item) => {
|
// libraryItems.forEach((item) => {
|
||||||
if (item.collapsedSeries) {
|
// if (item.collapsedSeries) {
|
||||||
item.collapsedSeries.books.forEach(book => uniqueEntities.add(book.id))
|
// item.collapsedSeries.books.forEach(book => uniqueEntities.add(book.id))
|
||||||
} else {
|
// } else {
|
||||||
uniqueEntities.add(item.id)
|
// uniqueEntities.add(item.id)
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
payload.total = uniqueEntities.size
|
payload.total = libraryItems.length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user