Skip to content

Commit

Permalink
[FIX] #77 change data accumulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Jul 17, 2024
1 parent 431fc7b commit d366717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/pages/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Start() {

const newEntries = response.data.entries;
if (newEntries.length) {
setEntries((prevEntries) => [prevEntries, ...newEntries]);
setEntries((prevEntries) => [...prevEntries, ...newEntries]);
index.current += newEntries.length;
}

Expand All @@ -97,6 +97,7 @@ function Start() {

return (
<>
{console.info("entries %o", entries)}
<div className="start">
<div className="grid-item info">
{messageObj.isError &&
Expand Down

0 comments on commit d366717

Please sign in to comment.