@sumaris-net/ngx-components 2.3.5 → 2.3.6

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.
@@ -27982,9 +27982,10 @@ class AppEntityEditor extends AppTabEditor {
27982
27982
  this._listenChangesSubscription = this.listenChanges(this.data.id, {
27983
27983
  interval: this._listenIntervalInSeconds
27984
27984
  })
27985
- .pipe(filter(isNotNil),
27986
- // If saving, wait end, to avoid to detect self changes
27987
- mergeMap((data) => this.saving ? of(data) : firstFalse(this.savingSubject).pipe(mapTo(data))))
27985
+ .pipe(filter(isNotNil), mergeMap((data) => this.saving
27986
+ // If saving, wait end, to avoid to detect self changes
27987
+ ? firstFalse(this.savingSubject).pipe(mapTo(data), debounceTime(500))
27988
+ : of(data)))
27988
27989
  .subscribe((data) => {
27989
27990
  const isNewer = isMoment(data.updateDate) && data.updateDate.isAfter(this.data.updateDate);
27990
27991
  if (!isNewer)