1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed node loading

This commit is contained in:
Fedor Katurov 2021-10-05 13:44:38 +07:00
parent c986bc434b
commit d31b94c42a
3 changed files with 13 additions and 13 deletions

View file

@ -62,12 +62,11 @@ function* getMore() {
return;
}
const last = list.nodes[list.nodes.length];
const last = list.nodes[list.nodes.length - 1];
if (!last) {
return;
}
const after = last.node.created_at;
const { nodes, count }: Unwrap<typeof getLabNodes> = yield call(getLabNodes, { after });
const newNodes = [...list.nodes, ...nodes];