@dooherceg/material-react-table 3.2.18 → 3.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2713,9 +2713,8 @@ const handleUpdateRow = ({ getRowId, setRowsState, }) => {
|
|
|
2713
2713
|
});
|
|
2714
2714
|
return previousRows.map((row, index) => {
|
|
2715
2715
|
const rowId = getResolvedRowId(row, index, undefined, getRowId);
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
: row;
|
|
2716
|
+
const updatedRow = rowId !== undefined ? rowById.get(rowId) : undefined;
|
|
2717
|
+
return updatedRow !== undefined ? Object.assign(Object.assign({}, row), updatedRow) : row;
|
|
2719
2718
|
});
|
|
2720
2719
|
});
|
|
2721
2720
|
};
|