From 0b53d36e761dae71edafc3f51932636735bd1ea2 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 8 Feb 2024 18:21:43 -0300 Subject: [PATCH] Add chat output responses to chatMessages --- src/frontend/src/components/newChatView/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/src/components/newChatView/index.tsx b/src/frontend/src/components/newChatView/index.tsx index 1a3293f12..49151581a 100644 --- a/src/frontend/src/components/newChatView/index.tsx +++ b/src/frontend/src/components/newChatView/index.tsx @@ -49,6 +49,13 @@ export default function newChatView(): JSX.Element { } } }); + inputIds.forEach((inputId) => { + if (inputId.includes("ChatInput")) { + if (flowPool[inputId] && flowPool[inputId].length > 0) { + chatOutputResponses.push(...flowPool[inputId]); + } + } + }); const chatMessages: ChatMessageType[] = chatOutputResponses .sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp)) .filter((output) => !!output.data.artifacts.message)