fix: group tables loading rows issue

This commit is contained in:
shamsmosowi
2021-12-07 10:54:11 +07:00
parent 13721a69e9
commit bb2435c30d

View File

@@ -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);