From 4b04a83fbdad48920c2d3251a0d3f754e2a896b5 Mon Sep 17 00:00:00 2001 From: kris2kris <36845394+kris2kris@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:06:14 +0200 Subject: [PATCH] Fix 'delete all' for client scopes (#3062) --- src/clients/scopes/ClientScopes.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clients/scopes/ClientScopes.tsx b/src/clients/scopes/ClientScopes.tsx index 93aa4ceae3..cb9ae496e0 100644 --- a/src/clients/scopes/ClientScopes.tsx +++ b/src/clients/scopes/ClientScopes.tsx @@ -76,7 +76,6 @@ export const ClientScopes = ({ ); const [addDialogOpen, setAddDialogOpen] = useState(false); - const [kebabOpen, setKebabOpen] = useState(false); const [rest, setRest] = useState(); const [selectedRows, setSelectedRows] = useState([]); @@ -195,6 +194,8 @@ export const ClientScopes = ({ }); const ManagerToolbarItems = () => { + const [kebabOpen, setKebabOpen] = useState(false); + if (!isManager) return ; return ( @@ -235,6 +236,7 @@ export const ClientScopes = ({ ); setKebabOpen(false); + setSelectedRows([]); addAlert( t("clients:clientScopeRemoveSuccess"), AlertVariant.success