Поправлен баг

This commit is contained in:
Book Pauk
2022-10-31 13:57:10 +07:00
parent 198a2b9d76
commit 39dc7647bc

View File

@@ -133,8 +133,8 @@ class SeriesList extends BaseList {
if (!this.showCounts || item.count === undefined) if (!this.showCounts || item.count === undefined)
return result; return result;
if (item.books) { if (item.booksLoaded) {
result = `${item.books.length}/${item.count}`; result = `${item.booksLoaded.length}/${item.count}`;
} else } else
result = `#/${item.count}`; result = `#/${item.count}`;
@@ -163,7 +163,6 @@ class SeriesList extends BaseList {
const filtered = this.filterBooks(seriesItem.allBooksLoaded); const filtered = this.filterBooks(seriesItem.allBooksLoaded);
//объединение по сериям
const books = []; const books = [];
for (const book of filtered) { for (const book of filtered) {
books.push(prepareBook(book)); books.push(prepareBook(book));