Skip to content

Commit

Permalink
Merge pull request #595 from rowyio/develop
Browse files Browse the repository at this point in the history
fix: group tables loading rows issue
  • Loading branch information
shamsmosowi authored Dec 7, 2021
2 parents 13721a6 + bb2435c commit 2a6f7dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/useTable/useTableData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const rowsReducer = (prevRows: any, update: any) => {
r._rowy_missingRequiredFields.length > 0) ||
r._rowy_outOfOrder === true
);

return _uniqBy([...localRows, ...snapshotDocs.map(doc2row)], "id");
return _uniqBy([...localRows, ...snapshotDocs.map(doc2row)], "ref.path");

case "delete":
return prevRows.filter((row) => update.rowId !== row.id);
Expand Down

0 comments on commit 2a6f7dd

Please sign in to comment.