From 65b7c9898b2548d564ac36951c76f79e5d247427 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 17 Sep 2024 23:02:41 +0200 Subject: [PATCH] fix --- src/lib/components/chat/ChatControls.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index dc672e195..e87487e8f 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -2,7 +2,7 @@ import { SvelteFlowProvider } from '@xyflow/svelte'; import { slide } from 'svelte/transition'; - import { onMount } from 'svelte'; + import { onDestroy, onMount } from 'svelte'; import { mobile, showControls, showCallOverlay, showOverview } from '$lib/stores'; import Modal from '../common/Modal.svelte'; @@ -45,6 +45,10 @@ mediaQuery.removeEventListener('change', handleMediaQuery); }; }); + + onDestroy(() => { + showControls.set(false); + });