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: while saving the widget, queryData(response of the query) is not send over the backend as it is always calc over the frontend (#323)

pal-sig050da9a2a95c
diff --git a/frontend/src/store/actions/dashboard/saveDashboard.ts b/frontend/src/store/actions/dashboard/saveDashboard.ts
index 33f1a03422..a280221d9f 100644
--- a/frontend/src/store/actions/dashboard/saveDashboard.ts
+++ b/frontend/src/store/actions/dashboard/saveDashboard.ts
@@ -73,6 +73,15 @@ export const SaveDashboard = ({
opacity: updatedopacity,
title: updatedTitle,
timePreferance: updatedtimePreferance,
+ queryData: {
+ ...selectedWidget.queryData,
+ data: [
+ ...selectedWidget.queryData.data.map((e) => ({
+ ...e,
+ queryData: [],
+ })),
+ ],
+ },
},
...afterWidget,
],