Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Joel5e2c3eeac3e2
diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx
index a3b18afb1bb..ebe6ab09677 100644
--- a/web/app/components/share/chat/index.tsx
+++ b/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)