disable remove all when no row is selected
This commit is contained in:
parent
b0faaa829a
commit
2c2cfc0ad9
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue