Pārlūkot izejas kodu

fix: chat app added new var old conversation not work (#511)

Joel 1 gadu atpakaļ
vecāks
revīzija
5e2c3eeac3
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      web/app/components/share/chat/index.tsx

+ 3 - 0
web/app/components/share/chat/index.tsx

@@ -369,6 +369,9 @@ const Main: FC<IMainProps> = ({
   }
 
   const checkCanSend = () => {
+    if (currConversationId !== '-1')
+      return true
+
     const prompt_variables = promptConfig?.prompt_variables
     const inputs = currInputs
     if (!inputs || !prompt_variables || prompt_variables?.length === 0)