Browse Source

Поправка бага

Book Pauk 2 years ago
parent
commit
d579be5376
1 changed files with 4 additions and 1 deletions
  1. 4 1
      client/components/Search/Search.vue

+ 4 - 1
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);