mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +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) {
|
if (!this.allowSelectNone && selectedCollectionIds.length === 0) {
|
||||||
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
||||||
this.i18nService.t('selectOneCollection'));
|
this.i18nService.t('selectOneCollection'));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.cipherDomain.collectionIds = selectedCollectionIds;
|
this.cipherDomain.collectionIds = selectedCollectionIds;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export class ShareComponent implements OnInit {
|
|||||||
if (selectedCollectionIds.length === 0) {
|
if (selectedCollectionIds.length === 0) {
|
||||||
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
||||||
this.i18nService.t('selectOneCollection'));
|
this.i18nService.t('selectOneCollection'));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cipherDomain = await this.cipherService.get(this.cipherId);
|
const cipherDomain = await this.cipherService.get(this.cipherId);
|
||||||
|
|||||||
Reference in New Issue
Block a user