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: disabling API call when the panel type is EMPTY (#3087)
dnazarenkooed200e50c878
diff --git a/frontend/src/container/GridGraphLayout/Graph/index.tsx b/frontend/src/container/GridGraphLayout/Graph/index.tsxindex e4f543b7d5..169582ed95 100644--- a/frontend/src/container/GridGraphLayout/Graph/index.tsx+++ b/frontend/src/container/GridGraphLayout/Graph/index.tsx@@ -83,6 +83,11 @@ function GridCardGraph({const updatedQuery = useStepInterval(widget?.query);+ const isEmptyWidget = useMemo(+ () => widget?.id === 'empty' || isEmpty(widget),+ [widget],+ );+const queryResponse = useGetQueryRange({selectedTime: widget?.timePreferance,@@ -101,7 +106,7 @@ function GridCardGraph({variables,],keepPreviousData: true,- enabled: isGraphVisible,+ enabled: isGraphVisible && !isEmptyWidget,refetchOnMount: false,onError: (error) => {setErrorMessage(error.message);@@ -131,8 +136,6 @@ function GridCardGraph({);const onDeleteHandler = useCallback(() => {- const isEmptyWidget = widget?.id === 'empty' || isEmpty(widget);-const widgetId = isEmptyWidget ? layout[0].i : widget?.id;featureResponse@@ -147,7 +150,8 @@ function GridCardGraph({});});}, [- widget,+ isEmptyWidget,+ widget?.id,layout,featureResponse,deleteWidget,