mirror of https://github.com/langgenius/dify.git
fix: allow empty values in Variable Inspector (#25644)
This commit is contained in:
parent
9e7328abfb
commit
5c50c3aa70
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue