From 8e0a22c7669cf985d6236177380522ce2a499a49 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 8 Feb 2021 15:28:11 -0500 Subject: [PATCH] Fix page number when only fetching one row --- awx/ui_next/src/screens/Job/JobOutput/shared/jobOutputUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);