mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Fix page number when only fetching one row
This commit is contained in:
parent
c0fb2ddbdc
commit
8e0a22c766
@ -3,7 +3,7 @@ export default function getRowRangePageSize(startIndex, stopIndex) {
|
||||
let pageSize;
|
||||
|
||||
if (startIndex === stopIndex) {
|
||||
page = startIndex;
|
||||
page = startIndex + 1;
|
||||
pageSize = 1;
|
||||
} else if (stopIndex >= startIndex + 50) {
|
||||
page = Math.ceil(startIndex / 50);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user