@sumaris-net/ngx-components 1.23.36 → 1.23.37

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.
@@ -4596,9 +4596,10 @@
4596
4596
  FormArrayHelper.prototype.setValue = function (values, opts) {
4597
4597
  var _this = this;
4598
4598
  this.resize(0);
4599
+ var emitEvent = (!opts || (opts === null || opts === void 0 ? void 0 : opts.emitEvent) !== false);
4599
4600
  (values || []).forEach(function (value, i) {
4600
- var isLast = i === values.length - 1;
4601
- _this.add(value, { emitEvent: isLast });
4601
+ var last = (i === values.length - 1);
4602
+ _this.add(value, { emitEvent: last && emitEvent });
4602
4603
  });
4603
4604
  };
4604
4605
  /**