[PM-1408] Vault Items with null Folder Value not Handled Correctly (#5066)

* Added optional chaining to folder view object to handle when the foilder value is null

* Set folder to null during cleanup and added check on the view component to check if the folder is nul before rendering the html
This commit is contained in:
SmithThe4th 2023-03-27 09:36:57 -04:00 committed by GitHub
parent 846b15d6d3
commit c241e5e0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,7 @@
</div>
</div>
</div>
<div class="box" *ngIf="cipher.folderId">
<div class="box" *ngIf="cipher.folderId && folder">
<div class="box-content">
<div class="box-content-row">
<label

View File

@ -434,6 +434,7 @@ export class ViewComponent implements OnDestroy, OnInit {
private cleanUp() {
this.totpCode = null;
this.cipher = null;
this.folder = null;
this.showPassword = false;
this.showCardNumber = false;
this.showCardCode = false;