ms-data-grid 0.0.146 → 0.0.147
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.
|
@@ -4953,7 +4953,7 @@ class DataGridComponent {
|
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
4955
|
if (this.originalDataSet && Array.isArray(this.originalDataSet)) {
|
|
4956
|
-
const originalRowIndex = this.originalDataSet.findIndex(r => r
|
|
4956
|
+
const originalRowIndex = this.originalDataSet.findIndex(r => (r?.id && r?.id === obj?.id) || (r?._id && r._id === obj._id));
|
|
4957
4957
|
if (originalRowIndex !== -1) {
|
|
4958
4958
|
const originalParent = keys.reduce((acc, key) => acc[key] ??= {}, this.originalDataSet[originalRowIndex]);
|
|
4959
4959
|
if (originalParent && lastKey) {
|