@sumaris-net/ngx-components 1.3.7 → 1.3.8

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.
@@ -19484,14 +19484,13 @@
19484
19484
  console.warn('[form] Trying to set an empty value to form. Skipping');
19485
19485
  return;
19486
19486
  }
19487
- if (this.debug)
19488
- console.debug('[form] Updating form (using entity)', data);
19487
+ // DEBUG
19488
+ //if (this.debug) console.debug('[form] Updating form (using entity)', data);
19489
19489
  // Convert object to json, then apply it to form (e.g. convert 'undefined' into 'null')
19490
- this.form.patchValue(data, Object.assign({ emitEvent: false, onlySelf: true }, opts));
19491
- //AppFormUtils.copyEntity2Form(data, this.form, {emitEvent: false, onlySelf: true, ...opts});
19492
- /*if (!opts || opts.emitEvent !== true) {
19493
- this.markForCheck();
19494
- }*/
19490
+ AppFormUtils.copyEntity2Form(data, this.form, Object.assign({ emitEvent: false, onlySelf: true }, opts));
19491
+ if (!opts || opts.emitEvent !== true) {
19492
+ this.markForCheck();
19493
+ }
19495
19494
  };
19496
19495
  AppForm.prototype.reset = function (data, opts) {
19497
19496
  if (data) {