mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
return on error
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user