Заплатка для исправления (#10)
This commit is contained in:
@@ -197,8 +197,12 @@ class AuthorList extends BaseList {
|
||||
result = `${count}`;
|
||||
if (item.seriesLoaded) {
|
||||
const rec = item.seriesLoaded[book.series];
|
||||
const totalCount = (this.showDeleted ? rec.bookCount + rec.bookDelCount : rec.bookCount);
|
||||
result += `/${totalCount}`;
|
||||
// заплатка для исправления https://github.com/bookpauk/inpx-web/issues/10
|
||||
// по невыясненным причинам rec иногда равен undefined
|
||||
if (rec) {
|
||||
const totalCount = (this.showDeleted ? rec.bookCount + rec.bookDelCount : rec.bookCount);
|
||||
result += `/${totalCount}`;
|
||||
}
|
||||
}
|
||||
|
||||
return `(${result})`;
|
||||
|
||||
Reference in New Issue
Block a user