Skip to content

Commit 15d4422

Browse files
committed
update pagination
1 parent d2431d7 commit 15d4422

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/instantly/instantly.app.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default {
184184
limit: LIMIT,
185185
};
186186

187-
let count = 0;
187+
let total, count = 0;
188188

189189
do {
190190
const {
@@ -196,8 +196,9 @@ export default {
196196
return;
197197
}
198198
}
199+
total = items?.length;
199200
args[optsKey].starting_after = next;
200-
} while (args[optsKey].starting_after);
201+
} while (total === args[optsKey].limit);
201202
},
202203
},
203204
};

0 commit comments

Comments
 (0)