mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 18:27:15 +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])
|
}, [currentVar.id, currentVar.value])
|
||||||
|
|
||||||
const handleTextChange = (value: string) => {
|
const handleTextChange = (value: string) => {
|
||||||
|
if(isTruncated)
|
||||||
|
return
|
||||||
if (currentVar.value_type === 'string')
|
if (currentVar.value_type === 'string')
|
||||||
setValue(value)
|
setValue(value)
|
||||||
|
|
||||||
@ -127,6 +129,8 @@ const ValueContent = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleEditorChange = (value: string) => {
|
const handleEditorChange = (value: string) => {
|
||||||
|
if(isTruncated)
|
||||||
|
return
|
||||||
setJson(value)
|
setJson(value)
|
||||||
if (jsonValueValidate(value, currentVar.value_type)) {
|
if (jsonValueValidate(value, currentVar.value_type)) {
|
||||||
const parsed = JSON.parse(value)
|
const parsed = JSON.parse(value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user