Поправка бага
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user