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: clone dashboard panel intermittent issue (#5096)

Vikrant Guptac913c8bf208e
diff --git a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
index 0b47403224..269e648aee 100644
--- a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
+++ b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
@@ -160,7 +160,11 @@ function WidgetGraphComponent({
},
},
{
- onSuccess: () => {
+ onSuccess: (updatedDashboard) => {
+ if (setLayouts) setLayouts(updatedDashboard.payload?.data?.layout || []);
+ if (setSelectedDashboard && updatedDashboard.payload) {
+ setSelectedDashboard(updatedDashboard.payload);
+ }
notifications.success({
message: 'Panel cloned successfully, redirecting to new copy.',
});