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 && (