Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

make sure feedback state doesn't remain accross chats (#1726)

Mike Fortman122de41a7008
diff --git a/frontend/app/chat/page.tsx b/frontend/app/chat/page.tsx
index 3323369c0..af9f89857 100644
--- a/frontend/app/chat/page.tsx
+++ b/frontend/app/chat/page.tsx
@@ -920,7 +920,7 @@ function ChatPage() {
? (messages[index]?.content.match(FILES_REGEX)?.[0] ??
null) === null && (
<div
- key={`${
+ key={`${currentConversationId ?? "new"}-${
message.role
}-${index}-${message.timestamp?.getTime()}`}
className="space-y-6 group"
@@ -956,7 +956,7 @@ function ChatPage() {
(messages[index - 1]?.content.match(FILES_REGEX)?.[0] ??
null) === null) && (
<div
- key={`${
+ key={`${currentConversationId ?? "new"}-${
message.role
}-${index}-${message.timestamp?.getTime()}`}
className="space-y-6 group"