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={[ dropdownItems={[
<DropdownItem <DropdownItem
key="deleteAll" key="deleteAll"
isDisabled={
rows.filter((row) => row.selected).length === 0
}
onClick={async () => { onClick={async () => {
try { try {
await Promise.all( await Promise.all(