From 5e2c3eeac3e22c7b7af835ed61b4803725e4c3f5 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 4 Jul 2023 14:33:41 +0800 Subject: [PATCH] fix: chat app added new var old conversation not work (#511) --- web/app/components/share/chat/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index a3b18afb1b..ebe6ab0967 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -369,6 +369,9 @@ const Main: FC = ({ } const checkCanSend = () => { + if (currConversationId !== '-1') + return true + const prompt_variables = promptConfig?.prompt_variables const inputs = currInputs if (!inputs || !prompt_variables || prompt_variables?.length === 0)