@sumaris-net/ngx-components 2.4.43 → 2.4.45

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.
@@ -14201,7 +14201,7 @@ class AppForm {
14201
14201
  this.form.reset(json, { emitEvent: false, onlySelf: true });
14202
14202
  }
14203
14203
  else {
14204
- this.form.reset(null, { emitEvent: false, onlySelf: true });
14204
+ this.form.reset(undefined, { emitEvent: false, onlySelf: true });
14205
14205
  }
14206
14206
  if (!opts || opts.emitEvent !== true)
14207
14207
  this.markForCheck();
@@ -27789,7 +27789,8 @@ class AppEditor {
27789
27789
  this.markAsLoading();
27790
27790
  this._children?.forEach(f => {
27791
27791
  if (f instanceof AppForm) {
27792
- f.reset(null, opts);
27792
+ // Fix error when 'null' is pass (default value = {} was not applied)
27793
+ f.reset(undefined, opts);
27793
27794
  }
27794
27795
  else if (f instanceof AppTable) {
27795
27796
  f.dataSource.disconnect();