1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

[PM-17713] Only use cachedCipherView if the cache was initialized from a cipher (#13133)

(cherry picked from commit 99ecf821dd)
This commit is contained in:
Shane Melton
2025-01-29 13:40:03 -08:00
parent 7caeacca20
commit bbde2572b9

View File

@@ -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;
}