diff --git a/web/app/components/workflow/variable-inspect/value-content.tsx b/web/app/components/workflow/variable-inspect/value-content.tsx index a3ede311c4..c8233d1fa2 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))