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:
parent
c986bc434b
commit
d31b94c42a
3 changed files with 13 additions and 13 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue