From ea2f95e2268bd1a94e6b99b853b4aa51f228bc44 Mon Sep 17 00:00:00 2001 From: Chandra Mauli Sharma Date: Wed, 13 Nov 2024 01:07:44 +0530 Subject: [PATCH] fix: Add new item should set item type (bitwarden#10994) (#11049) Co-authored-by: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> --- apps/desktop/src/vault/app/vault/vault.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/vault/app/vault/vault.component.ts b/apps/desktop/src/vault/app/vault/vault.component.ts index b6357b35d7b..54d8eb833f4 100644 --- a/apps/desktop/src/vault/app/vault/vault.component.ts +++ b/apps/desktop/src/vault/app/vault/vault.component.ts @@ -428,7 +428,7 @@ export class VaultComponent implements OnInit, OnDestroy { return; } - this.addType = type; + this.addType = type || this.activeFilter.cipherType; this.action = "add"; this.cipherId = null; this.prefillNewCipherFromFilter();