From 4cb85ed2fbce0624ea650b89099549a3bd0c22a0 Mon Sep 17 00:00:00 2001 From: anmol2710 Date: Sun, 22 Dec 2024 12:23:46 +0530 Subject: [PATCH] Bugfix: Prevent unnecessary page reload after deleting a user from the organization --- src/components/OrgPeopleListCard/OrgPeopleListCard.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx b/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx index dca72b84e7..47bba1ce34 100644 --- a/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx +++ b/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx @@ -59,9 +59,7 @@ function orgPeopleListCard( /* istanbul ignore next */ if (data) { toast.success(t('memberRemoved') as string); - setTimeout(() => { - window.location.reload(); - }, 2000); + props.toggleRemoveModal(); } } catch (error: unknown) { /* istanbul ignore next */