From d46e16fefcf15aadebb827f40c1a701ead2beb9d Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 25 Jun 2021 16:44:58 -0400 Subject: [PATCH] fix(front-end): adjust logic to perform set action and change prop name sent to the back-end --- striker-ui/components/Servers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index fe106ae1..4ae2832b 100644 --- a/striker-ui/components/Servers.tsx +++ b/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', }); }