@arsedizioni/ars-utils 21.0.19 → 21.0.20

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.
@@ -2194,8 +2194,12 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2194
2194
  * @param data : the result list to prepare
2195
2195
  */
2196
2196
  prepareResults(data) {
2197
+ const currentTotal = this.snapshot?.total ?? 0;
2197
2198
  this.selection?.current.clear();
2198
2199
  this.snapshot = data;
2200
+ if (this.snapshot.total == -1) {
2201
+ this.snapshot.total = currentTotal;
2202
+ }
2199
2203
  if (this.snapshot.items) {
2200
2204
  this.prepareResultItems(this.snapshot.items, this.filterParams);
2201
2205
  }
@@ -2715,9 +2719,6 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
2715
2719
  this.dialogService.busy('Ricerca in corso...');
2716
2720
  const searchParams = this.prepareFetch(newSearch);
2717
2721
  if (searchParams) {
2718
- console.log(searchParams.first);
2719
- var a = this.toReferencesSearchParams(searchParams);
2720
- console.log(a.first);
2721
2722
  this.clipperService.references(this.toReferencesSearchParams(searchParams))
2722
2723
  .pipe(finalize$1(() => this.dialogService.clearBusy()))
2723
2724
  .subscribe(r => {