@acorex/components 3.0.37 → 3.0.38

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.
@@ -14194,7 +14194,7 @@
14194
14194
  _this.hideLoading(null);
14195
14195
  _this.list = _data.data.result;
14196
14196
  _this.list.forEach(function (el) {
14197
- el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
14197
+ el.disabledCheckBox = _this.selectableField != '' ? (el[_this.selectableField] ? el[_this.selectableField] : false) : false;
14198
14198
  el.select = false;
14199
14199
  if (_this.selectionLevel == 'nodes' && el[_this.hasChildField] == true) {
14200
14200
  el.disabledCheckBox = true;
@@ -14244,7 +14244,8 @@
14244
14244
  if (_this.list.length !== 0) {
14245
14245
  if (_this.itemRow[_this.childField] && _this.itemRow[_this.childField].length > 0) {
14246
14246
  result_1.forEach(function (el) {
14247
- el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
14247
+ el.disabledCheckBox = _this.selectableField != '' ? (el[_this.selectableField] ? el[_this.selectableField] : false) : false;
14248
+ // el.disabledCheckBox = this.selectableField != '' ? el[this.selectableField] : false;
14248
14249
  _this.itemRow[_this.childField][_this.itemRow[_this.childField].length] = el;
14249
14250
  });
14250
14251
  }
@@ -14252,6 +14253,8 @@
14252
14253
  _this.itemRow[_this.childField] = result_1;
14253
14254
  }
14254
14255
  var _loop_1 = function (i) {
14256
+ result_1[i].disabledCheckBox =
14257
+ _this.selectableField != '' ? (result_1[i][_this.selectableField] ? result_1[i][_this.selectableField] : false) : false;
14255
14258
  if (_this.selectionLevel == 'nodes' && result_1[i][_this.hasChildField] == true) {
14256
14259
  result_1[i].disabledCheckBox = true;
14257
14260
  }