mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
catch error
This commit is contained in:
@@ -78,13 +78,15 @@ export class ShareComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const checkedCollectionIds = this.collections.filter((c) => (c as any).checked).map((c) => c.id);
|
const checkedCollectionIds = this.collections.filter((c) => (c as any).checked).map((c) => c.id);
|
||||||
this.formPromise = Promise.all(attachmentPromises).then(async () => {
|
try {
|
||||||
await this.cipherService.shareWithServer(cipherView, this.organizationId, checkedCollectionIds);
|
this.formPromise = Promise.all(attachmentPromises).then(async () => {
|
||||||
this.onSharedCipher.emit();
|
await this.cipherService.shareWithServer(cipherView, this.organizationId, checkedCollectionIds);
|
||||||
this.analytics.eventTrack.next({ action: 'Shared Cipher' });
|
this.onSharedCipher.emit();
|
||||||
this.toasterService.popAsync('success', null, this.i18nService.t('sharedItem'));
|
this.analytics.eventTrack.next({ action: 'Shared Cipher' });
|
||||||
});
|
this.toasterService.popAsync('success', null, this.i18nService.t('sharedItem'));
|
||||||
await this.formPromise;
|
});
|
||||||
|
await this.formPromise;
|
||||||
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
check(c: CollectionView, select?: boolean) {
|
check(c: CollectionView, select?: boolean) {
|
||||||
|
|||||||
Reference in New Issue
Block a user