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.

Revert "fix: reevaluated newdashboard bool to ensure that widget doesn't exis…" (#7567)

SagarRajput-7844195b84f67
diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsx
index 4bd5087856..dc8eafe76c 100644
--- a/frontend/src/container/NewWidget/index.tsx
+++ b/frontend/src/container/NewWidget/index.tsx
@@ -111,8 +111,9 @@ function NewWidget({ selectedGraph }: NewWidgetProps): JSX.Element {
const widgetId = query.get('widgetId');
const selectedWidget = widgets?.find((e) => e.id === widgetId);
const isWidgetNotPresent = isUndefined(selectedWidget);
-
- setIsNewDashboard(isWidgetNotPresent);
+ if (isWidgetNotPresent) {
+ setIsNewDashboard(true);
+ }
if (!logEventCalledRef.current) {
logEvent('Panel Edit: Page visited', {
@@ -126,7 +127,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');