mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
[PM-17713] Only use cachedCipherView if the cache was initialized from a cipher (#13133)
This commit is contained in:
@@ -178,7 +178,7 @@ export class CipherFormComponent implements AfterViewInit, OnInit, OnChanges, Ci
|
|||||||
getInitialCipherView(): CipherView {
|
getInitialCipherView(): CipherView {
|
||||||
const cachedCipherView = this.cipherFormCacheService.getCachedCipherView();
|
const cachedCipherView = this.cipherFormCacheService.getCachedCipherView();
|
||||||
|
|
||||||
if (cachedCipherView) {
|
if (cachedCipherView && this.initializedWithCachedCipher()) {
|
||||||
return cachedCipherView;
|
return cachedCipherView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user