Skip to content

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

fix(monitors): fix threshold input editing glitch (LFE-10295) (#14260)

Mark Salpeter058024ff9b47
diff --git a/web/src/features/monitors/components/MonitorForm.tsx b/web/src/features/monitors/components/MonitorForm.tsx
index ade15f0643..5127dc9122 100644
--- a/web/src/features/monitors/components/MonitorForm.tsx
+++ b/web/src/features/monitors/components/MonitorForm.tsx
@@ -652,9 +652,7 @@ export const MonitorForm = ({
value={field.value ?? ""}
onChange={(e) => {
const raw = e.target.value;
- field.onChange(
- raw === "" ? undefined : Number(raw),
- );
+ field.onChange(raw === "" ? null : Number(raw));
}}
disabled={!hasAccess}
/>