@arsedizioni/ars-utils 18.2.69 → 18.2.71

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.
@@ -319,16 +319,8 @@ class ClipperSearchFacetsComponent {
319
319
  */
320
320
  restore(data) {
321
321
  if (data) {
322
- this.snapshot.groups = data.groups;
323
- this.snapshot.usedGroups = data.usedGroups;
324
- this.snapshot.hasFacets = data.hasFacets;
325
- this.snapshot.fromDate = data.fromDate;
326
- this.snapshot.toDate = data.toDate;
327
- this.snapshot.sector = data.sector;
328
- this.snapshot.author = data.author;
329
- this.snapshot.anchor = data.anchor;
330
- this.snapshot.type = data.type;
331
- this.snapshot.reason = data.reason;
322
+ this.snapshot = data;
323
+ this.changeDetector.markForCheck();
332
324
  }
333
325
  }
334
326
  /**
@@ -1291,6 +1283,8 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1291
1283
  scroll: scroll,
1292
1284
  sort: { mode: this.sortMode, options: this.sortOptions },
1293
1285
  data: this.snapshot
1286
+ ? { items: this.snapshot.items, total: this.snapshot.total }
1287
+ : null
1294
1288
  }));
1295
1289
  }
1296
1290
  /**