pages switch update for small amount of alarms

This commit is contained in:
Ivan 2023-10-31 16:32:42 +03:00
parent cc01af1b03
commit 13dcf2fb1c
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583

View File

@ -291,7 +291,7 @@
countMax = Math.ceil(data.total / 14);
var currentPage = parseInt(pageNumberInput.value, 10);
if (currentPage === countMax || currentPage > countMax) {
if (currentPage > countMax) {
pageNumberInput.value = countMax;
requestUpdate();
}