tnx-shared 5.0.56 → 5.0.57

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.
@@ -6001,7 +6001,7 @@
6001
6001
  if (model.hasOwnProperty(sourceField)) {
6002
6002
  valueFilter = model[sourceField];
6003
6003
  if (canAccessSubField(valueFilter)) {
6004
- if (isArray(valueFilter)) {
6004
+ if (isArray(valueFilter) && typeof subField === 'string') {
6005
6005
  valueFilter = valueFilter.map(function (x) { return x[subField]; });
6006
6006
  }
6007
6007
  else {
@@ -6215,6 +6215,7 @@
6215
6215
  });
6216
6216
  };
6217
6217
  CrudService.prototype.mergeRefDataToDatasource = function (dataSource, schema, data) {
6218
+ data !== null && data !== void 0 ? data : (data = []);
6218
6219
  var field = schema.field;
6219
6220
  var funcGetLabel = function (item) { return item[schema.displayField] || item['label']; };
6220
6221
  if (schema.funcGetLabel) {
@@ -11704,6 +11705,7 @@
11704
11705
  });
11705
11706
  };
11706
11707
  DataListBase.prototype.mergeRefDataToDatasource = function (dataSource, schema, data) {
11708
+ data !== null && data !== void 0 ? data : (data = []);
11707
11709
  var field = schema.field;
11708
11710
  var funcGetLabel = function (item) { return item[schema.displayField] || item['label']; };
11709
11711
  if (schema.funcGetLabel) {