From 284ab648b636d7324600229bf887e3b7482951a1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 24 Jun 2024 15:21:42 -0700 Subject: [PATCH] fix --- src/lib/components/chat/Chat.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 53376a656..cad42111d 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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);