From 99ecf821dd5602938b8c42cebe73f80e9eb348df Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Wed, 29 Jan 2025 13:40:03 -0800 Subject: [PATCH] [PM-17713] Only use cachedCipherView if the cache was initialized from a cipher (#13133) --- libs/vault/src/cipher-form/components/cipher-form.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vault/src/cipher-form/components/cipher-form.component.ts b/libs/vault/src/cipher-form/components/cipher-form.component.ts index a4f8f8f61e0..7fa212dec8a 100644 --- a/libs/vault/src/cipher-form/components/cipher-form.component.ts +++ b/libs/vault/src/cipher-form/components/cipher-form.component.ts @@ -178,7 +178,7 @@ export class CipherFormComponent implements AfterViewInit, OnInit, OnChanges, Ci getInitialCipherView(): CipherView { const cachedCipherView = this.cipherFormCacheService.getCachedCipherView(); - if (cachedCipherView) { + if (cachedCipherView && this.initializedWithCachedCipher()) { return cachedCipherView; }