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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: reevaluated newdashboard bool to ensure that widget doesn't exist, incase of a prior PUT call (#7525)
SagarRajput-7e53d3d1269ee
diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsxindex 399ab16f19..608ec32d81 100644--- a/frontend/src/container/NewWidget/index.tsx+++ b/frontend/src/container/NewWidget/index.tsx@@ -115,9 +115,8 @@ function NewWidget({ selectedGraph }: NewWidgetProps): JSX.Element {const widgetId = query.get('widgetId');const selectedWidget = widgets?.find((e) => e.id === widgetId);const isWidgetNotPresent = isUndefined(selectedWidget);- if (isWidgetNotPresent) {- setIsNewDashboard(true);- }++ setIsNewDashboard(isWidgetNotPresent);if (!logEventCalledRef.current) {logEvent('Panel Edit: Page visited', {@@ -131,7 +130,7 @@ function NewWidget({ selectedGraph }: NewWidgetProps): JSX.Element {logEventCalledRef.current = true;}// eslint-disable-next-line react-hooks/exhaustive-deps- }, []);+ }, [widgets]);const getWidget = useCallback(() => {const widgetId = query.get('widgetId');