mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 19:37:38 -02:30
Fix page number when only fetching one row
This commit is contained in:
@@ -3,7 +3,7 @@ export default function getRowRangePageSize(startIndex, stopIndex) {
|
|||||||
let pageSize;
|
let pageSize;
|
||||||
|
|
||||||
if (startIndex === stopIndex) {
|
if (startIndex === stopIndex) {
|
||||||
page = startIndex;
|
page = startIndex + 1;
|
||||||
pageSize = 1;
|
pageSize = 1;
|
||||||
} else if (stopIndex >= startIndex + 50) {
|
} else if (stopIndex >= startIndex + 50) {
|
||||||
page = Math.ceil(startIndex / 50);
|
page = Math.ceil(startIndex / 50);
|
||||||
|
|||||||
Reference in New Issue
Block a user