@churchillliving/se-ui-toolkit 6.53.378 → 6.53.379

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.
@@ -3425,17 +3425,17 @@
3425
3425
  };
3426
3426
  // set grid data and set selected row based on selection value
3427
3427
  GridService.prototype.setDataWithSelectedRow = function (records, configData) {
3428
- if ((configData === null || configData === void 0 ? void 0 : configData.valueProp) && configData.data.selection) {
3428
+ if (((configData === null || configData === void 0 ? void 0 : configData.valueProp) || (configData === null || configData === void 0 ? void 0 : configData.labelProp)) && configData.data.selection) {
3429
3429
  records.forEach(function (record) {
3430
3430
  var _a;
3431
3431
  (_a = Object.keys(record)) === null || _a === void 0 ? void 0 : _a.forEach(function (key) {
3432
- var _a, _b;
3433
- if (key.toLowerCase() === configData.valueProp.toLowerCase()) {
3432
+ var _a, _b, _c, _d;
3433
+ if (key.toLowerCase() === configData.labelProp ? (_a = configData.labelProp) === null || _a === void 0 ? void 0 : _a.toLowerCase() : (_b = configData.valueProp) === null || _b === void 0 ? void 0 : _b.toLowerCase()) {
3434
3434
  if (configData.data.value &&
3435
3435
  record[key] === configData.data.value) {
3436
3436
  record['highlightRow'] = true;
3437
3437
  }
3438
- else if (((_a = record[key]) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = configData.data.selection) === null || _b === void 0 ? void 0 : _b.toString())) {
3438
+ else if (((_c = record[key]) === null || _c === void 0 ? void 0 : _c.toString()) === ((_d = configData.data.selection) === null || _d === void 0 ? void 0 : _d.toString())) {
3439
3439
  record['highlightRow'] = true;
3440
3440
  }
3441
3441
  }