mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
fix: Prevent orphan alert when duplicating dashboard tiles (#1655)
Closes HDX-3270 # Summary This PR fixes a bug which caused duplicate, orphaned alerts to be created when duplicating a dashboard tile with an alert.
This commit is contained in:
parent
4e8173f68e
commit
eea4fa4897
2 changed files with 10 additions and 0 deletions
5
.changeset/stale-rules-hide.md
Normal file
5
.changeset/stale-rules-hide.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
fix: Prevent orphan alert when duplicating dashboard tiles
|
||||
|
|
@ -861,6 +861,11 @@ function DBDashboardPage({ presetConfig }: { presetConfig?: Dashboard }) {
|
|||
{
|
||||
...chart,
|
||||
id: makeId(),
|
||||
config: {
|
||||
...chart.config,
|
||||
// Don't duplicate any alerts that may be set on the original tile
|
||||
alert: undefined,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue