From 45360ea45beaa85019de1b7d80b65b3bc031749a Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Fri, 7 Mar 2025 17:31:12 -0800 Subject: [PATCH] refresh list after save --- apps/desktop/src/vault/app/vault/vault.component.ts | 4 +++- 1 file changed, 3 insertions(+), 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 bde8e626faa..0f334bd4886 100644 --- a/apps/desktop/src/vault/app/vault/vault.component.ts +++ b/apps/desktop/src/vault/app/vault/vault.component.ts @@ -497,7 +497,7 @@ export class VaultComponent implements OnInit, OnDestroy { this.action = "view"; await this.vaultItemsComponent.refresh(); await this.cipherService.clearCache(this.activeUserId); - await this.viewComponent.load(); + await this.vaultItemsComponent.load(this.activeFilter.buildFilter()); this.go(); } @@ -571,6 +571,8 @@ export class VaultComponent implements OnInit, OnDestroy { // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // eslint-disable-next-line @typescript-eslint/no-floating-promises this.viewCipher(cipher); + await this.vaultItemsComponent.refresh(); + await this.cipherService.clearCache(this.activeUserId); await this.vaultItemsComponent.load(this.activeFilter.buildFilter()); }); // eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe