diff --git a/apps/desktop/src/vault/app/vault/vault.component.ts b/apps/desktop/src/vault/app/vault/vault.component.ts index 2c669e388f8..d8be360170a 100644 --- a/apps/desktop/src/vault/app/vault/vault.component.ts +++ b/apps/desktop/src/vault/app/vault/vault.component.ts @@ -493,12 +493,14 @@ export class VaultComponent implements OnInit, OnDestroy { } async savedCipher(cipher: CipherView) { - this.cipherId = cipher.id; + this.cipherId = null; this.action = "view"; await this.vaultItemsComponent.refresh(); + this.cipherId = cipher.id; await this.cipherService.clearCache(this.activeUserId); - await this.viewComponent.load(); + await this.vaultItemsComponent.load(this.activeFilter.buildFilter()); this.go(); + await this.vaultItemsComponent.refresh(); } async deletedCipher(cipher: CipherView) { @@ -572,6 +574,8 @@ export class VaultComponent implements OnInit, OnDestroy { // 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 this.modal.onClosed.subscribe(async () => {