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: dashboard save layout (#1320)
Pranshu Chittoraeeae71163ca9
diff --git a/frontend/src/container/GridGraphLayout/index.tsx b/frontend/src/container/GridGraphLayout/index.tsxindex 8f7ea56c15..d80b12f7a1 100644--- a/frontend/src/container/GridGraphLayout/index.tsx+++ b/frontend/src/container/GridGraphLayout/index.tsx@@ -113,20 +113,21 @@ function GridGraph(props: Props): JSX.Element {errorMessage: '',loading: true,}));-+ const updatedDashboard: Dashboard = {+ ...selectedDashboard,+ data: {+ title: data.title,+ description: data.description,+ name: data.name,+ tags: data.tags,+ widgets: data.widgets,+ layout,+ },+ uuid: selectedDashboard.uuid,+ };// Save layout only when users has the has the permission to do so.if (saveLayoutPermission) {- const response = await updateDashboardApi({- data: {- title: data.title,- description: data.description,- name: data.name,- tags: data.tags,- widgets: data.widgets,- layout,- },- uuid: selectedDashboard.uuid,- });+ const response = await updateDashboardApi(updatedDashboard);if (response.statusCode === 200) {setSaveLayoutState((state) => ({...state,@@ -134,6 +135,10 @@ function GridGraph(props: Props): JSX.Element {errorMessage: '',loading: false,}));+ dispatch({+ type: UPDATE_DASHBOARD,+ payload: updatedDashboard,+ });} else {setSaveLayoutState((state) => ({...state,@@ -153,8 +158,9 @@ function GridGraph(props: Props): JSX.Element {data.tags,data.title,data.widgets,+ dispatch,saveLayoutPermission,- selectedDashboard.uuid,+ selectedDashboard,],);