1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Replace cipher results with filtered results (#301)

This commit is contained in:
Matt Gibson 2021-05-12 08:09:34 -05:00 committed by GitHub
parent 80f34d5de5
commit 1ed637e123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,9 +133,9 @@ export class GetCommand extends DownloadCommand {
}
if (Array.isArray(decCipher)) {
if (filter != null) {
const filteredCiphers = decCipher.filter(filter);
if (filteredCiphers.length === 1) {
decCipher = filteredCiphers[0];
decCipher = decCipher.filter(filter);
if (decCipher.length === 1) {
decCipher = decCipher[0];
}
}
if (Array.isArray(decCipher)) {