mirror of https://github.com/langgenius/dify.git
chore: fix trunate change proplem
This commit is contained in:
parent
d4370a8ca5
commit
68ba41e57e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue