From 9dc23bf3e7103b260df9f4b16c386b40bf7293ec Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Fri, 22 Nov 2024 15:26:53 -0800 Subject: [PATCH] revert to previous doc select logic (#3217) * revert to previous doc select logic * k --- web/src/app/chat/ChatPage.tsx | 2 -- web/src/app/chat/documentSidebar/DocumentSidebar.tsx | 3 ++- web/src/app/chat/message/Messages.tsx | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index bd7c39646fd..0bb3ebfa965 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -2461,7 +2461,6 @@ export function ChatPage({ textAreaRef={textAreaRef} chatSessionId={chatSessionIdRef.current!} /> - {enterpriseSettings && enterpriseSettings.custom_lower_disclaimer_content && (
@@ -2474,7 +2473,6 @@ export function ChatPage({
)} - {enterpriseSettings && enterpriseSettings.use_custom_logotype && (
diff --git a/web/src/app/chat/documentSidebar/DocumentSidebar.tsx b/web/src/app/chat/documentSidebar/DocumentSidebar.tsx index 5a6ed956fe6..021c2398157 100644 --- a/web/src/app/chat/documentSidebar/DocumentSidebar.tsx +++ b/web/src/app/chat/documentSidebar/DocumentSidebar.tsx @@ -75,7 +75,8 @@ export const DocumentSidebar = forwardRef(
{popup}
- {dedupedDocuments.length} Documents + {dedupedDocuments.length} Document + {dedupedDocuments.length > 1 ? "s" : ""}

Select to add to continuous context { - if (toggleDocumentSelection) { - toggleDocumentSelection(); + if (messageId) { + onMessageSelection?.(messageId); } + toggleDocumentSelection?.(); }} key={-1} className="cursor-pointer w-[200px] rounded-lg flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-4 py-2 border-b"