From 479b572e3b8269d188311651ff45ad82cdc1fded Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 2 Mar 2024 11:58:39 -0800 Subject: [PATCH] improvement: use the corret methods for updating svelte state --- client/src/lib/Dashboard/Visualization/Scene.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/lib/Dashboard/Visualization/Scene.svelte b/client/src/lib/Dashboard/Visualization/Scene.svelte index be0ab7e..fc1d9f7 100644 --- a/client/src/lib/Dashboard/Visualization/Scene.svelte +++ b/client/src/lib/Dashboard/Visualization/Scene.svelte @@ -122,10 +122,10 @@ onMount(() => {}) - + { - $cameraControls = ref + cameraControls.set(ref) }} autoRotateSpeed={3} /> @@ -139,7 +139,7 @@ position.y={0} on:create={({ ref }) => { // @ts-expect-error - $mesh = ref + mesh.set(ref) }} />