diff --git a/client/components/Search/AuthorList/AuthorList.vue b/client/components/Search/AuthorList/AuthorList.vue index 2f5892a..bc22ac2 100644 --- a/client/components/Search/AuthorList/AuthorList.vue +++ b/client/components/Search/AuthorList/AuthorList.vue @@ -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})`;