Fix: json update in conversation variable (#18483)

This commit is contained in:
KVOJJJin
2025-04-21 17:58:01 +08:00
committed by GitHub
parent 7b6523e54d
commit 3136eb8e4b

View File

@@ -123,7 +123,7 @@ const ChatVariableModal = ({
case ChatVarType.Number:
return value || 0
case ChatVarType.Object:
return formatValueFromObject(objectValue)
return editInJSON ? value : formatValueFromObject(objectValue)
case ChatVarType.ArrayString:
case ChatVarType.ArrayNumber:
case ChatVarType.ArrayObject: