From 68ba41e57eae8771c3cc44a8aefd94b6b8cf7ee8 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 22 Aug 2025 11:08:54 +0800 Subject: [PATCH] chore: fix trunate change proplem --- .../components/workflow/variable-inspect/value-content.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/components/workflow/variable-inspect/value-content.tsx b/web/app/components/workflow/variable-inspect/value-content.tsx index 0bb73cd6ce..97f9ad8611 100644 --- a/web/app/components/workflow/variable-inspect/value-content.tsx +++ b/web/app/components/workflow/variable-inspect/value-content.tsx @@ -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)