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: allow empty values in Variable Inspector (#25644)

yo5c50c3aa70c8
diff --git a/web/app/components/workflow/variable-inspect/value-content.tsx b/web/app/components/workflow/variable-inspect/value-content.tsx
index a3ede311c45..c8233d1fa2b 100644
--- a/web/app/components/workflow/variable-inspect/value-content.tsx
+++ b/web/app/components/workflow/variable-inspect/value-content.tsx
@@ -71,7 +71,7 @@ const ValueContent = ({
setValue(currentVar.value)
}
if (showJSONEditor)
- setJson(currentVar.value ? JSON.stringify(currentVar.value, null, 2) : '')
+ setJson(currentVar.value != null ? JSON.stringify(currentVar.value, null, 2) : '')
if (showFileEditor)
setFileValue(formatFileValue(currentVar))