fix dashboard name (#911)
This commit is contained in:
parent
ee8c367933
commit
42a6be95e8
|
@ -30,7 +30,7 @@ func alertRuleBuiltinList(c *gin.Context) {
|
|||
continue
|
||||
}
|
||||
|
||||
name := strings.TrimRight(f, ".json")
|
||||
name := strings.TrimSuffix(f, ".json")
|
||||
names = append(names, name)
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ func dashboardBuiltinList(c *gin.Context) {
|
|||
continue
|
||||
}
|
||||
|
||||
name := strings.TrimRight(f, ".json")
|
||||
name := strings.TrimSuffix(f, ".json")
|
||||
names = append(names, name)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue