mirror of
https://github.com/langgenius/dify.git
synced 2026-04-03 21:51:14 +08:00
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
Block a user