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

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 = {};
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);