Преглед изворни кода

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

Joel пре 1 година
родитељ
комит
5e2c3eeac3
1 измењених фајлова са 3 додато и 0 уклоњено
  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)