Timothy J. Baek 10 달 전
부모
커밋
284ab648b6
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/lib/components/chat/Chat.svelte

+ 2 - 3
src/lib/components/chat/Chat.svelte

@@ -534,9 +534,8 @@
 										const createdAtDate = new Date(createdAtTimestamp * 1000)
 											.toISOString()
 											.split('T')[0];
-										acc.push(`${index + 1}. [${createdAtDate}]. ${doc}`);
-										return acc;
-									}, []);
+										return `${acc}${index + 1}. [${createdAtDate}]. ${doc}\n`;
+									}, '');
 								}
 
 								console.log(userContext);