Skip to content

Commit

Permalink
Fix Metric-as-Visualization update from MetricExport
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfitzgibbons committed Oct 23, 2023
1 parent 385946e commit a6f8435
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions public/components/metrics/top_menu/top_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,16 @@ export const TopMenu = ({
const res = await client.get({ objectId: metricLayout.savedVisualizationId });
const currentObject = res.observabilityObjectList[0];

await client.update({
object_id: metricLayout.savedVisualizationId,
object: {
...currentObject.savedVisualization,
name,
await client.update(
{
object_id: metricLayout.savedVisualizationId,
object: {
...currentObject.savedVisualization,
name,
},
},
});
true
);
return metricLayout.savedVisualizationId;
};

Expand Down

0 comments on commit a6f8435

Please sign in to comment.