diff --git a/src/angular/components/collections.component.ts b/src/angular/components/collections.component.ts index abd17fafad..fcac85c010 100644 --- a/src/angular/components/collections.component.ts +++ b/src/angular/components/collections.component.ts @@ -55,6 +55,7 @@ export class CollectionsComponent implements OnInit { if (!this.allowSelectNone && selectedCollectionIds.length === 0) { this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'), this.i18nService.t('selectOneCollection')); + return; } this.cipherDomain.collectionIds = selectedCollectionIds; try { diff --git a/src/angular/components/share.component.ts b/src/angular/components/share.component.ts index 3903709b08..956178fb71 100644 --- a/src/angular/components/share.component.ts +++ b/src/angular/components/share.component.ts @@ -70,6 +70,7 @@ export class ShareComponent implements OnInit { if (selectedCollectionIds.length === 0) { this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'), this.i18nService.t('selectOneCollection')); + return; } const cipherDomain = await this.cipherService.get(this.cipherId);