From dd88105d1b6911b338f98d17fe7682f4ac331ef0 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 25 Jun 2021 16:51:19 -0400 Subject: [PATCH] fix(front-end): avoid sending a set_power request when closing the power menu --- striker-ui/components/Servers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 4ae2832b..e781a4b5 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -196,7 +196,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} - onClose={handlePower} + onClose={() => setAnchorEl(null)} > {buttonLabels.map((label: ButtonLabels) => { return (