@arsedizioni/ars-utils 21.1.34 → 21.1.35

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.
@@ -927,7 +927,6 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
927
927
  this.updateRelevants();
928
928
  break;
929
929
  case 'hits2':
930
- this.relevants.hits = data.total;
931
930
  this.updateRelevants(data.items);
932
931
  break;
933
932
  }
@@ -1281,6 +1280,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
1281
1280
  else {
1282
1281
  if (anchors) {
1283
1282
  this.relevants.items = [];
1283
+ this.relevants.hits = anchors.length;
1284
1284
  anchors.forEach(a => {
1285
1285
  this.relevants.items.push({
1286
1286
  documentId: this.lastDocument.documentId,