diff --git a/FRONTEND/src/components/DrawerControl.tsx b/FRONTEND/src/components/DrawerControl.tsx index 61fe0e1..d6c87a6 100644 --- a/FRONTEND/src/components/DrawerControl.tsx +++ b/FRONTEND/src/components/DrawerControl.tsx @@ -892,7 +892,8 @@ export const DrawerSwitchControl: React.FC = ({ className={classes.buttonMenuTool} disabled={isSubmit} title={ - listPortsSelected.length === listPorts.flat().length + listPortsSelected.length === listPorts.flat().length && + listPorts.flat().length > 0 ? "Deselect All" : "Select All" } @@ -908,10 +909,10 @@ export const DrawerSwitchControl: React.FC = ({ } }} > - {listPortsSelected.length === listPorts.flat().length - ? "Deselect All" - : "Select All"}{" "} - {"(" + listPorts.flat().length + ")"} + {listPortsSelected.length === listPorts.flat().length && + listPorts.flat().length > 0 + ? "Clear All" + : "Select All"}