Timothy Jaeryang Baek 3 tháng trước cách đây
mục cha
commit
1f641ce1fb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/routes/s/[id]/+page.svelte

+ 2 - 2
src/routes/s/[id]/+page.svelte

@@ -116,8 +116,8 @@
 				autoScroll = true;
 				await tick();
 
-				if (messages.length > 0) {
-					history.messages[messages.at(-1).id].done = true;
+				if (messages.length > 0 && messages.at(-1)?.id && messages.at(-1)?.id in history.messages) {
+					history.messages[messages.at(-1)?.id].done = true;
 				}
 				await tick();