fix alert history tag display
This commit is contained in:
parent
a3fee54f7a
commit
54512491b7
|
@ -85,7 +85,7 @@ func eventCurGets(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tagsList := []string{}
|
tagsList := []string{}
|
||||||
if len(detail) > 1 {
|
if len(detail) > 0 {
|
||||||
for k, v := range detail[0].Tags {
|
for k, v := range detail[0].Tags {
|
||||||
tagsList = append(tagsList, fmt.Sprintf("%s=%s", k, v))
|
tagsList = append(tagsList, fmt.Sprintf("%s=%s", k, v))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue