Skip to content

Commit 1c27142

Browse files
committed
minors
1 parent eb206e4 commit 1c27142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/jobs/RunsTableModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ qx.Class.define("osparc.jobs.RunsTableModel", {
133133
}
134134

135135
// Limit the request to smaller chunks for better pagination
136-
const PAGE_SIZE = 20;
136+
const serverMaxLimit = osparc.store.Jobs.SERVER_MAX_LIMIT;
137+
const PAGE_SIZE = serverMaxLimit;
137138
const nextChunkStart = this.__findNextSequentialChunk(firstRow);
138139
const lastRow = Math.min(nextChunkStart + PAGE_SIZE - 1, this._rowCount - 1);
139140

@@ -181,7 +182,6 @@ qx.Class.define("osparc.jobs.RunsTableModel", {
181182

182183
const fetchPromises = missingRanges.map(range => {
183184
const rangeSize = range.end - range.start + 1;
184-
const serverMaxLimit = osparc.store.Jobs.SERVER_MAX_LIMIT;
185185

186186
if (rangeSize <= serverMaxLimit) {
187187
return getFetchPromise(range.start, rangeSize).then(data => ({

0 commit comments

Comments
 (0)