From 9ed195c9f9b761dea69ebf1ad25cd4f6bb558470 Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Wed, 21 Dec 2022 11:59:23 -0500 Subject: [PATCH] SG-903 - AllUsers count now updated on user remove which fixes issue with web/org/manage/people comp showing upgrade modal even after a user has been removed. (#4294) --- apps/web/src/app/common/base.people.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/src/app/common/base.people.component.ts b/apps/web/src/app/common/base.people.component.ts index 4f2e1937e7..a76b5817c8 100644 --- a/apps/web/src/app/common/base.people.component.ts +++ b/apps/web/src/app/common/base.people.component.ts @@ -401,6 +401,12 @@ export abstract class BasePeopleComponent< this.users.splice(index, 1); this.resetPaging(); } + + index = this.allUsers.indexOf(user); + if (index > -1) { + this.allUsers.splice(index, 1); + } + if (this.statusMap.has(user.status)) { index = this.statusMap.get(user.status).indexOf(user); if (index > -1) {