From d579be53762ce08fe7680425f3803cf811fee1a6 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 26 Oct 2022 01:36:45 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B1=D0=B0=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index b5ac537..51bc73d 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -320,7 +320,7 @@ class Search { prevList = {}; list = { queryFound: -1, - totalFound: 0, + totalFound: -1, inpxHash: '', liberamaReady: false, }; @@ -672,6 +672,9 @@ class Search { } updatePageCount() { + if (this.list.totalFound < 0) + return; + const prevPageCount = this.pageCount; this.pageCount = Math.ceil(this.list.totalFound/this.limit);