@arsedizioni/ars-utils 21.1.39 → 21.1.42

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.
@@ -1272,9 +1272,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
1272
1272
  */
1273
1273
  updateRelevants(anchors) {
1274
1274
  if (anchors) {
1275
- console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
1276
1275
  let items = [];
1277
- console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
1278
1276
  anchors.forEach(a => {
1279
1277
  items.push({
1280
1278
  chunk: a.chunkId,
@@ -1283,14 +1281,15 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
1283
1281
  text: a.text,
1284
1282
  uri: "__SEARCH_HIT_" + a.index
1285
1283
  });
1284
+ console.log("item: ", JSON.stringify(items[items.length - 1]));
1286
1285
  });
1287
1286
  this.relevants.items = items;
1288
1287
  this.hasRelevants.set(items.length > 0);
1289
- console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
1290
1288
  this.handleRelevantsPaneVisibility();
1291
1289
  this.changeDetector.markForCheck();
1292
1290
  }
1293
1291
  else {
1292
+ return;
1294
1293
  const query = this.lastQuery;
1295
1294
  if (!query ||
1296
1295
  query.length === 0 ||