From bb770ba66720bb37fead6730b836f440c9a5304a Mon Sep 17 00:00:00 2001 From: Mark Hendriksen Date: Sat, 13 Jul 2024 02:13:40 +0200 Subject: [PATCH] Update AddLight.jsx --- src/components/AddLight/AddLight.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AddLight/AddLight.jsx b/src/components/AddLight/AddLight.jsx index 0108467..cd8bbd2 100644 --- a/src/components/AddLight/AddLight.jsx +++ b/src/components/AddLight/AddLight.jsx @@ -19,8 +19,7 @@ const AddLight = ({ HOST_IP, API_KEY }) => { }); }; - const handleForm = (evt) => { - evt.preventDefault(); + const handleForm = () => { const { protocol: lightproto, ip: lightip, ...rest } = lightData; const formattedData = { protocol: lightproto,