@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.
@@ -5982,7 +5982,7 @@ class SmartformwidgetComponent {
5982
5982
  }
5983
5983
  }
5984
5984
  selected(event, widgetInstance) {
5985
- let value = event.option.viewValue;
5985
+ let value = event.option.value;
5986
5986
  this.setTextFieldChipsValue(value);
5987
5987
  }
5988
5988
  setTextFieldChipsValue(value) {
@@ -6286,11 +6286,13 @@ class SmartformwidgetComponent {
6286
6286
  return false;
6287
6287
  }
6288
6288
  getChipsValue(value) {
6289
- if ('name' in value) {
6290
- return value['name'];
6291
- }
6292
- if ('displayValue' in value) {
6293
- return value['displayValue'];
6289
+ if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
6290
+ if ('name' in value) {
6291
+ return value['name'];
6292
+ }
6293
+ if ('displayValue' in value) {
6294
+ return value['displayValue'];
6295
+ }
6294
6296
  }
6295
6297
  return value;
6296
6298
  }