mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
return on error
This commit is contained in:
parent
00f1aad65e
commit
75514d79a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user