mirror of
https://github.com/langgenius/dify.git
synced 2026-03-06 08:06:37 +08:00
chore: fix trunate change proplem
This commit is contained in:
@ -78,6 +78,8 @@ const ValueContent = ({
|
||||
}, [currentVar.id, currentVar.value])
|
||||
|
||||
const handleTextChange = (value: string) => {
|
||||
if(isTruncated)
|
||||
return
|
||||
if (currentVar.value_type === 'string')
|
||||
setValue(value)
|
||||
|
||||
@ -127,6 +129,8 @@ const ValueContent = ({
|
||||
}
|
||||
|
||||
const handleEditorChange = (value: string) => {
|
||||
if(isTruncated)
|
||||
return
|
||||
setJson(value)
|
||||
if (jsonValueValidate(value, currentVar.value_type)) {
|
||||
const parsed = JSON.parse(value)
|
||||
|
||||
Reference in New Issue
Block a user