@sumaris-net/ngx-components 1.3.6 → 1.3.7

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.
@@ -19487,11 +19487,11 @@
19487
19487
  if (this.debug)
19488
19488
  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
- AppFormUtils.copyEntity2Form(data, this.form, opts);
19491
- if (!opts || opts.emitEvent !== false) {
19492
- this.markAsLoaded({ emitEvent: false });
19493
- this.markForCheck();
19494
- }
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
+ }*/
19495
19495
  };
19496
19496
  AppForm.prototype.reset = function (data, opts) {
19497
19497
  if (data) {