Timothy Jaeryang Baek 4 ヶ月 前
コミット
d5152e43d5
1 ファイル変更2 行追加1 行削除
  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');