From e17dc9f7b50a50926e6566674387e5db736e1ee4 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Thu, 31 Oct 2024 02:24:53 -0700 Subject: [PATCH] Put train of thought ui before Khoj response on web app --- .../components/chatHistory/chatHistory.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index dac57917..772f1d35 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -318,6 +318,18 @@ export default function ChatHistory(props: ChatHistoryProps) { data.chat && data.chat.map((chatMessage, index) => ( <> + {chatMessage.trainOfThought && chatMessage.by === "khoj" && ( + train.data, + )} + lastMessage={false} + agentColor={data?.agent?.color || "orange"} + key={`${index}trainOfThought`} + keyId={`${index}trainOfThought`} + completed={true} + /> + )} - {chatMessage.trainOfThought && chatMessage.by === "khoj" && ( - train.data, - )} - lastMessage={false} - agentColor={data?.agent?.color || "orange"} - key={`${index}trainOfThought`} - keyId={`${index}trainOfThought`} - completed={true} - /> - )} ))} {props.incomingMessages &&