summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormabashian <mabashia@redhat.com>2021-02-08 21:28:11 +0100
committermabashian <mabashia@redhat.com>2021-03-18 14:53:50 +0100
commit8e0a22c7669cf985d6236177380522ce2a499a49 (patch)
tree5319b696568151baa1862df2ba7fe37ecc2b1edf
parentAdds ability to cancel jobs from output page back in (diff)
downloadawx-8e0a22c7669cf985d6236177380522ce2a499a49.tar.xz
awx-8e0a22c7669cf985d6236177380522ce2a499a49.zip
Fix page number when only fetching one row
-rw-r--r--awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js b/awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js
index ae428f2d4d..cb3e7fb309 100644
--- a/awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js
+++ b/awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js
@@ -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);