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