@arsedizioni/ars-utils 21.0.18 → 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
  }