diff --git a/src/Web/wwwroot/app/tools/toolsImportController.js b/src/Web/wwwroot/app/tools/toolsImportController.js index 574cc94afbb..6cdf5165257 100644 --- a/src/Web/wwwroot/app/tools/toolsImportController.js +++ b/src/Web/wwwroot/app/tools/toolsImportController.js @@ -12,6 +12,11 @@ }; function importSuccess(folders, sites, folderRelationships) { + if (!folder.length && !sites.length) { + toastr.error('Nothing was imported.'); + return; + } + apiService.ciphers.import({ folders: cipherService.encryptFolders(folders, cryptoService.getKey()), sites: cipherService.encryptSites(sites, cryptoService.getKey()),