mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03: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;
|
||||
|
||||
if (startIndex === stopIndex) {
|
||||
page = startIndex;
|
||||
page = startIndex + 1;
|
||||
pageSize = 1;
|
||||
} else if (stopIndex >= startIndex + 50) {
|
||||
page = Math.ceil(startIndex / 50);
|
||||
|
||||
Reference in New Issue
Block a user