Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(evaluator-templates): control editing state (#6187)

marliessophiebb4823aa276f
diff --git a/web/src/ee/features/evals/components/template-form.tsx b/web/src/ee/features/evals/components/template-form.tsx
index 69bd8065e6..07a2e1335c 100644
--- a/web/src/ee/features/evals/components/template-form.tsx
+++ b/web/src/ee/features/evals/components/template-form.tsx
@@ -420,7 +420,7 @@ export const InnerEvalTemplateForm = (props: {
<CodeMirrorEditor
value={field.value}
onChange={field.onChange}
- editable
+ editable={props.isEditing}
mode="prompt"
minHeight={200}
/>