Fix 'delete all' for client scopes (#3062)

This commit is contained in:
kris2kris 2022-08-08 12:06:14 +02:00 committed by GitHub
parent 965d86dce5
commit 4b04a83fbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,6 @@ export const ClientScopes = ({
);
const [addDialogOpen, setAddDialogOpen] = useState(false);
const [kebabOpen, setKebabOpen] = useState(false);
const [rest, setRest] = useState<ClientScopeRepresentation[]>();
const [selectedRows, setSelectedRows] = useState<Row[]>([]);
@ -195,6 +194,8 @@ export const ClientScopes = ({
});
const ManagerToolbarItems = () => {
const [kebabOpen, setKebabOpen] = useState(false);
if (!isManager) return <span />;
return (
@ -235,6 +236,7 @@ export const ClientScopes = ({
);
setKebabOpen(false);
setSelectedRows([]);
addAlert(
t("clients:clientScopeRemoveSuccess"),
AlertVariant.success