We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ee1e05 + 39360d8 commit b3ac04aCopy full SHA for b3ac04a
1 file changed
plugins/alerts/main.go
@@ -335,7 +335,12 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
335
}
336
337
a.Id = alert.Id
338
- a.ParentId = alert.ParentId
+ a.ParentId = func() string {
339
+ if parentId != nil {
340
+ return *parentId
341
+ }
342
+ return ""
343
+ }()
344
a.Name = alert.Name
345
a.Category = alert.Category
346
a.Description = alert.Description
0 commit comments