fix(front-end): adjust logic to perform set action and change prop name sent to the back-end

main
Josue 4 years ago committed by Digimer
parent ad3b85d9f3
commit d46e16fefc
  1. 4
      striker-ui/components/Servers.tsx

@ -141,9 +141,9 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
const handlePower = (label: ButtonLabels) => {
setAnchorEl(null);
if (!selected.length) {
if (selected.length) {
putJSON('/set_power', {
server_uuid: selected,
server_uuid_list: selected,
is_on: label === 'on',
});
}

Loading…
Cancel
Save