ngx-smz-ui 16.4.20 → 16.4.21

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.
@@ -24403,14 +24403,18 @@ class SmzFormTreeBuilder extends SmzFormInputBuilder {
24403
24403
  if (this._treeInput.selectionMode !== 'single') {
24404
24404
  throw Error("You can't call setDefaultValue for a Multiple or Checkbox Tree Input");
24405
24405
  }
24406
- this._treeInput.defaultValue = [value];
24406
+ if (value != null) {
24407
+ this._treeInput.defaultValue = [value];
24408
+ }
24407
24409
  return this;
24408
24410
  }
24409
24411
  setDefaultValues(values) {
24410
24412
  if (this._treeInput.selectionMode === 'single') {
24411
24413
  throw Error("You can't call setDefaultValues for a Single Tree Input");
24412
24414
  }
24413
- this._treeInput.defaultValue = values;
24415
+ if (values != null && isArray(values)) {
24416
+ this._treeInput.defaultValue = values;
24417
+ }
24414
24418
  return this;
24415
24419
  }
24416
24420
  autofocusFilter() {