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:
Drew Davis 2026-01-27 10:17:00 -05:00 committed by GitHub
parent 4e8173f68e
commit eea4fa4897
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
fix: Prevent orphan alert when duplicating dashboard tiles

View file

@ -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,
},
},
],
});