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.

fix: resets the state of adding a new panel (#3122)

dnazarenkoob3a6deb71b78
diff --git a/frontend/src/container/GridGraphLayout/index.tsx b/frontend/src/container/GridGraphLayout/index.tsx
index 2235b93708..6b6ec7d883 100644
--- a/frontend/src/container/GridGraphLayout/index.tsx
+++ b/frontend/src/container/GridGraphLayout/index.tsx
@@ -326,6 +326,13 @@ function GridGraph(props: Props): JSX.Element {
errorMessage,
]);
+ useEffect(
+ () => (): void => {
+ toggleAddWidget(false);
+ },
+ [toggleAddWidget],
+ );
+
return (
<GraphLayoutContainer
addPanelLoading={addPanelLoading}