Skip to content

Commit d163ec7

Browse files
author
Lucas BERGERON
committed
Rename lastPage variable to hasMore
1 parent 92c44e4 commit d163ec7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/nocodb/nocodb.app.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export default {
119119
async *paginate({
120120
fn, args = {}, max,
121121
}) {
122-
let lastPage, count = 0;
122+
let hasMore = false;
123+
let count = 0;
123124
args.params = {
124125
...args.params,
125126
offset: 0,
@@ -136,8 +137,8 @@ export default {
136137
return;
137138
}
138139
}
139-
lastPage = !pageInfo.isLastPage;
140-
} while (lastPage);
140+
hasMore = !pageInfo.isLastPage;
141+
} while (hasMore);
141142
},
142143
listWorkspaces(opts = {}) {
143144
return this._makeRequest({

0 commit comments

Comments
 (0)