@arsedizioni/ars-utils 18.2.158 → 18.2.160

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.
@@ -645,16 +645,14 @@ class ClipperDocumentManager {
645
645
  d.componentInstance.delete
646
646
  .subscribe((r) => {
647
647
  var item = r.selectedItems[0].bag;
648
- this.clipperService.removeFromBag(item.documentId).subscribe({
649
- next: () => {
650
- this.dialogService.toast('Operazione completata con successo.');
651
- for (let p = 0; p < r.items.length; p++) {
652
- if (r.items[p].bag.DocumentId === item.DocumentId) {
653
- r.items.splice(p, 1);
654
- if (r.items.length === 0)
655
- d.close();
656
- return;
657
- }
648
+ this.clipperService.removeFromBag(item.documentId).add(() => {
649
+ this.dialogService.toast('Operazione completata con successo.');
650
+ for (let p = 0; p < r.items.length; p++) {
651
+ if (r.items[p].bag.DocumentId === item.DocumentId) {
652
+ r.items.splice(p, 1);
653
+ if (r.items.length === 0)
654
+ d.close();
655
+ return;
658
656
  }
659
657
  }
660
658
  });