chore: fix trunate change proplem

This commit is contained in:
Joel 2025-08-22 11:08:54 +08:00
parent d4370a8ca5
commit 68ba41e57e
1 changed files with 4 additions and 0 deletions

View File

@ -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)