diff --git a/webui/src/components/Inspect.svelte b/webui/src/components/Inspect.svelte index 78211c7..bf3808b 100644 --- a/webui/src/components/Inspect.svelte +++ b/webui/src/components/Inspect.svelte @@ -161,12 +161,10 @@ revalidate(); } - onMount(() => { - fetch(`api/obj/${address}/LAST_VISITED`, { - method: "PUT", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ t: "Number", c: new Date().getTime() }), - }); + $: fetch(`api/obj/${address}/LAST_VISITED`, { + method: "PUT", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ t: "Number", c: new Date().getTime() }), });