From 3c16148bb73c5f6c235ae9d7783be0d59c02045b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20T=C3=B8n=20L=C3=B8vhaug?= Date: Sun, 9 Mar 2025 17:56:16 +0100 Subject: [PATCH] Send arg a number --- frontend/src/components/Settings.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Settings.svelte b/frontend/src/components/Settings.svelte index e860609..453a0fd 100644 --- a/frontend/src/components/Settings.svelte +++ b/frontend/src/components/Settings.svelte @@ -10,7 +10,7 @@ "Content-Type": "application/json", }, body: JSON.stringify({ - id: arg, + id: Number(arg), }), }); @@ -24,7 +24,7 @@ "Content-Type": "application/json", }, body: JSON.stringify({ - id: arg, + id: Number(arg), }), }); console.log(response);