Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: onChange event is added

Palash guptadeff5d5e17d2
diff --git a/frontend/src/components/Editor/index.tsx b/frontend/src/components/Editor/index.tsx
index 790b99c9f9..51a024f607 100644
--- a/frontend/src/components/Editor/index.tsx
+++ b/frontend/src/components/Editor/index.tsx
@@ -9,6 +9,12 @@ function Editor({ value }: EditorProps): JSX.Element {
value={value.current}
options={{ fontSize: 16, automaticLayout: true }}
height="40vh"
+ onChange={(newValue): void => {
+ if (value.current && newValue) {
+ // eslint-disable-next-line no-param-reassign
+ value.current = newValue;
+ }
+ }}
/>
);
}