From 024a5f9b8c25352c64a8b48a9d36f5bd9d84c87e Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 21 Dec 2022 13:42:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D0=BB=D0=B0=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/AuthorList/AuthorList.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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})`;