@sumaris-net/ngx-components 1.23.48 → 1.23.49

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.
@@ -21126,8 +21126,10 @@
21126
21126
  return __generator(this, function (_c) {
21127
21127
  if (this.debug)
21128
21128
  console.debug('[memory-data-service] Stopping...');
21129
- this.dataSubject.complete();
21130
- this.dataSubject.unsubscribe();
21129
+ if (!this.dataSubject.closed) {
21130
+ this.dataSubject.complete();
21131
+ this.dataSubject.unsubscribe();
21132
+ }
21131
21133
  this._hiddenData = null;
21132
21134
  this.markAsSaved();
21133
21135
  this.markAsPristine();
@@ -21279,10 +21281,10 @@
21279
21281
  offset = offset >= 0 ? offset : 0;
21280
21282
  size = size >= 0 ? size : -1;
21281
21283
  return this.dataSubject
21282
- .pipe(operators.takeUntil(this.stopSubject),
21284
+ .pipe(
21283
21285
  // Warn if waiting value to be set
21284
- operators.tap(function (data) { return _this.debug && !data && console.debug('[memory-data-service] Waiting value to be set...'); }), operators.filter(isNotNil), operators.mergeMap(function (_) { return _this.loadAll(offset, size, sortBy, sortDirection, filterData, options); }), operators.filter(isNotNil) // Skip no result (e.g. when stopped)
21285
- );
21286
+ operators.tap(function (data) { return _this.debug && !data && console.debug('[memory-data-service] Waiting value to be set...'); }), operators.filter(isNotNil), operators.mergeMap(function (_) { return _this.loadAll(offset, size, sortBy, sortDirection, filterData, options); }), operators.filter(isNotNil), // Skip no result (e.g. when stopped)
21287
+ operators.takeUntil(this.stopSubject));
21286
21288
  };
21287
21289
  InMemoryEntitiesService.prototype.saveAll = function (data, options) {
21288
21290
  return __awaiter(this, void 0, void 0, function () {