From c94d72bca826419bc024303c8ccef49db8677b76 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 18 Mar 2024 10:49:39 -0700 Subject: [PATCH] fix: sidebar menu --- src/lib/components/layout/Sidebar.svelte | 41 ++++++++++--------- .../components/layout/Sidebar/ChatMenu.svelte | 2 +- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index c8d8171511..8c151b783c 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -122,6 +122,8 @@ class="flex-grow flex justify-between rounded-xl px-3.5 py-2 hover:bg-gray-900 transition" href="/" on:click={async () => { + selectedChatId = null; + await goto('/'); const newChatButton = document.getElementById('new-chat-button'); setTimeout(() => { @@ -164,6 +166,10 @@ { + selectedChatId = null; + chatId.set(''); + }} >
{ + selectedChatId = null; + chatId.set(''); + }} >
{ + selectedChatId = null; + chatId.set(''); + }} >
- -
@@ -385,7 +382,9 @@