Timothy Jaeryang Baek 4 months ago
parent
commit
d5152e43d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/components/layout/Sidebar/ChatItem.svelte

+ 2 - 1
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');