diff --git a/ui/src/Clients.svelte b/ui/src/Clients.svelte index e0dc2fc..d8d900a 100644 --- a/ui/src/Clients.svelte +++ b/ui/src/Clients.svelte @@ -17,9 +17,10 @@ async function handleNewClick(event) { const res = await fetch(clientsUrl, { method: "POST", - }).then(getClients()); + }); let newClient = await res.json(); console.log("New client added", newClient); + await getClients(); } onMount(getClients);