disable remove all when no row is selected

This commit is contained in:
Erik Jan de Wit 2020-12-09 07:58:19 +01:00
parent b0faaa829a
commit 2c2cfc0ad9

View file

@ -341,6 +341,9 @@ export const ClientScopes = ({ clientId, protocol }: ClientScopesProps) => {
dropdownItems={[
<DropdownItem
key="deleteAll"
isDisabled={
rows.filter((row) => row.selected).length === 0
}
onClick={async () => {
try {
await Promise.all(