Skip to content

Commit 7910d70

Browse files
author
Lucas BERGERON
committed
Fix #14074 - Paginate not working
1 parent 2fab769 commit 7910d70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/nocodb/nocodb.app.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,20 @@ export default {
122122
let lastPage, count = 0;
123123
args.params = {
124124
...args.params,
125-
page: 1,
125+
offset: 0,
126+
limit: 1000
126127
};
127128
do {
128129
const {
129130
list, pageInfo,
130131
} = await fn(args);
131132
for (const item of list) {
133+
args.params.offset++;
132134
yield item;
133135
if (max && ++count === max) {
134136
return;
135137
}
136138
}
137-
args.params.page++;
138139
lastPage = !pageInfo.isLastPage;
139140
} while (lastPage);
140141
},

0 commit comments

Comments
 (0)