From 44f51994c1277911a886fa60840fe10303aa9cc0 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 13 Jun 2025 14:38:59 +0800 Subject: [PATCH] array[any] readonly --- .../llm/components/json-schema-config-modal/schema-editor.tsx | 3 +++ web/app/components/workflow/types.ts | 1 + .../components/workflow/variable-inspect/value-content.tsx | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx index 74255f7a95..7971499de1 100644 --- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx +++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx @@ -7,6 +7,7 @@ type SchemaEditorProps = { onUpdate: (schema: string) => void hideTopMenu?: boolean className?: string + readonly?: boolean } const SchemaEditor: FC = ({ @@ -14,9 +15,11 @@ const SchemaEditor: FC = ({ onUpdate, hideTopMenu, className, + readonly = false, }) => { return ( () const [json, setJson] = useState('') @@ -185,6 +186,7 @@ const ValueContent = ({ )} {showJSONEditor && (