From d7d7426431e9fcbf7d33143e4ef2e95f8bc5af8e Mon Sep 17 00:00:00 2001 From: Nick Krantz <125900171+nick-livefront@users.noreply.github.com> Date: Fri, 4 Oct 2024 08:47:03 -0500 Subject: [PATCH] pass the filtered cipher type when creating a new cipher (#11395) --- apps/web/src/app/vault/individual-vault/vault.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/vault/individual-vault/vault.component.ts b/apps/web/src/app/vault/individual-vault/vault.component.ts index aac686f21a..f404394042 100644 --- a/apps/web/src/app/vault/individual-vault/vault.component.ts +++ b/apps/web/src/app/vault/individual-vault/vault.component.ts @@ -627,12 +627,14 @@ export class VaultComponent implements OnInit, OnDestroy { } async addCipher(cipherType?: CipherType) { + const type = cipherType ?? this.activeFilter.cipherType; + if (this.extensionRefreshEnabled) { - return this.addCipherV2(cipherType); + return this.addCipherV2(type); } const component = (await this.editCipher(null)) as AddEditComponent; - component.type = cipherType || this.activeFilter.cipherType; + component.type = type; if ( this.activeFilter.organizationId !== "MyVault" && this.activeFilter.organizationId != null