diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte index 110233bf8..10636c665 100644 --- a/src/lib/components/layout/Sidebar/ChatItem.svelte +++ b/src/lib/components/layout/Sidebar/ChatItem.svelte @@ -110,9 +110,10 @@ if (res) { tags.set(await getAllTags(localStorage.token)); if ($chatId === id) { + await goto('/'); + await chatId.set(''); await tick(); - goto('/'); } dispatch('change');