Fix page number when only fetching one row

This commit is contained in:
mabashian 2021-02-08 15:28:11 -05:00
parent c0fb2ddbdc
commit 8e0a22c766

View File

@ -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);