fix alert history tag display

This commit is contained in:
710leo 2021-01-08 20:08:47 +08:00
parent a3fee54f7a
commit 54512491b7
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func eventCurGets(c *gin.Context) {
}
tagsList := []string{}
if len(detail) > 1 {
if len(detail) > 0 {
for k, v := range detail[0].Tags {
tagsList = append(tagsList, fmt.Sprintf("%s=%s", k, v))
}