fix(front-end): avoid sending a set_power request when closing the power menu
This commit is contained in:
parent
a1163916ab
commit
8615bf9f20
@ -196,7 +196,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
|
|||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
keepMounted
|
keepMounted
|
||||||
open={Boolean(anchorEl)}
|
open={Boolean(anchorEl)}
|
||||||
onClose={handlePower}
|
onClose={() => setAnchorEl(null)}
|
||||||
>
|
>
|
||||||
{buttonLabels.map((label: ButtonLabels) => {
|
{buttonLabels.map((label: ButtonLabels) => {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user