@servicemind.tis/tis-smart-table-viewer 2.4.16 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -459,11 +459,15 @@ class QueryParamsHelper {
|
|
|
459
459
|
const value = queryParams[key];
|
|
460
460
|
// Handle fixed parameters
|
|
461
461
|
if (key.toLowerCase() === 'pageindex') {
|
|
462
|
-
|
|
462
|
+
// Guard against malformed/stale URLs (NaN, negative): fall back to 0.
|
|
463
|
+
const n = Number(value);
|
|
464
|
+
pageIndex = (isFinite(n) && n >= 0) ? n : 0;
|
|
463
465
|
fixedKeyMatched = true;
|
|
464
466
|
}
|
|
465
467
|
else if (key.toLowerCase() === 'pagesize') {
|
|
466
|
-
|
|
468
|
+
// Guard against malformed/stale URLs (NaN, zero, negative): fall back to 10.
|
|
469
|
+
const n = Number(value);
|
|
470
|
+
pageSize = (isFinite(n) && n > 0) ? n : 10;
|
|
467
471
|
fixedKeyMatched = true;
|
|
468
472
|
}
|
|
469
473
|
else if (key.toLowerCase() === 'sortby') {
|