@smartbit4all/ng-client 3.3.223 → 3.3.224

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.
@@ -5921,7 +5921,7 @@ class SmartformwidgetComponent {
5921
5921
  }
5922
5922
  }
5923
5923
  selected(event, widgetInstance) {
5924
- let value = event.option.viewValue;
5924
+ let value = event.option.value;
5925
5925
  this.setTextFieldChipsValue(value);
5926
5926
  }
5927
5927
  setTextFieldChipsValue(value) {
@@ -6231,11 +6231,13 @@ class SmartformwidgetComponent {
6231
6231
  return false;
6232
6232
  }
6233
6233
  getChipsValue(value) {
6234
- if ('name' in value) {
6235
- return value['name'];
6236
- }
6237
- if ('displayValue' in value) {
6238
- return value['displayValue'];
6234
+ if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
6235
+ if ('name' in value) {
6236
+ return value['name'];
6237
+ }
6238
+ if ('displayValue' in value) {
6239
+ return value['displayValue'];
6240
+ }
6239
6241
  }
6240
6242
  return value;
6241
6243
  }