@arsedizioni/ars-utils 21.1.73 → 21.1.74
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.
|
@@ -1299,7 +1299,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1299
1299
|
this.dialogService.error(r.message);
|
|
1300
1300
|
else {
|
|
1301
1301
|
if (r.value?.items && r.value?.items.length > 0) {
|
|
1302
|
-
this.relevants.items = r.value.items[0].chunks
|
|
1302
|
+
this.relevants.items = (r.value.items[0].chunks?.length ?? 0) > 0 ? r.value.items[0].chunks : r.value.items[0].anchors;
|
|
1303
1303
|
this.hasRelevants.set(this.relevants.items?.length > 0);
|
|
1304
1304
|
}
|
|
1305
1305
|
this.handleRelevantsPaneVisibility();
|