@churchillliving/se-ui-toolkit 6.53.13 → 6.53.14

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.
@@ -4046,11 +4046,10 @@ class GridComponent {
4046
4046
  this.rowActionEvents(selectedRow);
4047
4047
  this.browserCloseEvent(false);
4048
4048
  if (row.isNew) {
4049
- if (this.addDataKeyValue) {
4050
- row['id'] = selectedRow['id'];
4051
- }
4052
4049
  const { isNew } = row, newRowObj = __rest(row, ["isNew"]);
4053
- delete newRowObj[this.dataKey];
4050
+ if (!this.addDataKeyValue) {
4051
+ delete newRowObj[this.dataKey];
4052
+ }
4054
4053
  if (this.saveAllRecord) {
4055
4054
  this.saveRecordArray.push(newRowObj);
4056
4055
  }