@arsedizioni/ars-utils 19.0.93 → 19.0.95

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.
@@ -2964,7 +2964,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
2964
2964
  * @returns the document or null
2965
2965
  */
2966
2966
  getSnapshotDocument(id) {
2967
- return this.snapshot.items.find(x => x.documentId === id);
2967
+ return this.snapshot.items.find(x => x.documentId === id || x.id === id);
2968
2968
  }
2969
2969
  /**
2970
2970
  * Load tags
@@ -3854,7 +3854,7 @@ class ClipperBrowserDialogComponent {
3854
3854
  if (message.id === ClipperMessages.DOCUMENT_SELECTED_INNER) {
3855
3855
  const document = this.clipperBrowser().getSnapshotDocument(message.data.documentId || message.data.id);
3856
3856
  if (document) {
3857
- this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, document);
3857
+ this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, [document]);
3858
3858
  this.changeDetector.markForCheck();
3859
3859
  this.dialogRef.close();
3860
3860
  }