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

This commit is contained in:
Book Pauk
2022-10-26 01:36:45 +07:00
parent b7d176c123
commit d579be5376

View File

@@ -320,7 +320,7 @@ class Search {
prevList = {}; prevList = {};
list = { list = {
queryFound: -1, queryFound: -1,
totalFound: 0, totalFound: -1,
inpxHash: '', inpxHash: '',
liberamaReady: false, liberamaReady: false,
}; };
@@ -672,6 +672,9 @@ class Search {
} }
updatePageCount() { updatePageCount() {
if (this.list.totalFound < 0)
return;
const prevPageCount = this.pageCount; const prevPageCount = this.pageCount;
this.pageCount = Math.ceil(this.list.totalFound/this.limit); this.pageCount = Math.ceil(this.list.totalFound/this.limit);