prevent from changing tool on homepage

This commit is contained in:
vcoppe
2024-07-18 15:24:56 +02:00
parent 0c7e9ff9e4
commit f20116b080

View File

@@ -36,11 +36,13 @@
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
onMount(() => {
currentTool.set(Tool.SCISSORS);
$currentTool = Tool.SCISSORS;
});
$: $currentTool, ($currentTool = Tool.SCISSORS);
onDestroy(() => {
currentTool.set(null);
$currentTool = null;
});
</script>