@churchillliving/se-ui-toolkit 6.53.397 → 6.53.398

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.
@@ -2628,18 +2628,24 @@
2628
2628
  GridService.prototype.setRowValue = function (rowData) {
2629
2629
  var _a;
2630
2630
  (_a = Object.keys(rowData)) === null || _a === void 0 ? void 0 : _a.forEach(function (row) {
2631
- var _a, _b, _c, _d;
2631
+ var _a, _b, _c, _d, _e;
2632
2632
  if (row === exports.EGridRowAction.DELETEBTN || row === exports.EGridRowAction.EDITBTN) {
2633
2633
  delete rowData[row];
2634
2634
  }
2635
2635
  else if (rowData[row] &&
2636
- typeof (rowData[row]) === 'object' &&
2637
- ((_b = (_a = rowData[row]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.field)) {
2638
- if ((_c = rowData[row]) === null || _c === void 0 ? void 0 : _c.extraField) {
2639
- delete rowData[row];
2636
+ typeof (rowData[row]) === 'object') {
2637
+ if ((_b = (_a = rowData[row]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.field) {
2638
+ if ((_c = rowData[row]) === null || _c === void 0 ? void 0 : _c.extraField) {
2639
+ delete rowData[row];
2640
+ }
2641
+ else {
2642
+ rowData[row] = (_d = rowData[row]) === null || _d === void 0 ? void 0 : _d.text;
2643
+ }
2640
2644
  }
2641
2645
  else {
2642
- rowData[row] = (_d = rowData[row]) === null || _d === void 0 ? void 0 : _d.text;
2646
+ if (rowData[row].hasOwnProperty('text') && rowData[row].hasOwnProperty('value')) {
2647
+ rowData[row] = (_e = rowData[row]) === null || _e === void 0 ? void 0 : _e.value;
2648
+ }
2643
2649
  }
2644
2650
  }
2645
2651
  });