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={[
|
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(
|
||||||
|
|
Loading…
Reference in a new issue