浏览代码

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)