From 61769f16c252a57c3a2560f4609380a2e34781a4 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Mon, 13 Jun 2022 11:56:01 -0700 Subject: [PATCH] [fix] Organization filter list expansion on badge click (#2897) In the ciphers list we show a badge for organization ownership that can be clicked to filter the vault by the organization in question. This expansion does not work for items labeled "Me". Click these badges filters by "My Vault" but doesn't expand the filter list. This commit corrects this behavior so the "Me" badges expand the organization filters when clicked. It does so by simply moving the line that checks for filter expansion out of a conditional that expects an organization, and instead does it any time an organization filter is changed. https://bitwarden.atlassian.net/browse/SG-293?focusedCommentId=13459&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13459 --- .../modules/individual-vault/individual-vault.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.ts b/apps/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.ts index 718382a5c8..47a0f433cf 100644 --- a/apps/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.ts +++ b/apps/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.ts @@ -190,8 +190,8 @@ export class IndividualVaultComponent implements OnInit, OnDestroy { this.activeFilter.myVaultOnly = true; } else { this.activeFilter.selectedOrganizationId = orgId; - await this.vaultFilterService.ensureVaultFiltersAreExpanded(); } + await this.vaultFilterService.ensureVaultFiltersAreExpanded(); await this.applyVaultFilter(this.activeFilter); }