@sumaris-net/ngx-components 2.4.43 → 2.4.44

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.
@@ -14192,7 +14192,7 @@ class AppForm {
14192
14192
  this.markForCheck();
14193
14193
  }
14194
14194
  }
14195
- reset(data, opts) {
14195
+ reset(data = {}, opts) {
14196
14196
  if (data) {
14197
14197
  if (this.debug)
14198
14198
  console.debug('[form] Resetting form (using entity)', data);
@@ -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();