fix: import builtin dashboards

This commit is contained in:
Ulric Qin 2022-04-07 14:09:14 +08:00
parent 30ba544f35
commit ac24e8b028
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ func dashboardBuiltinImport(c *gin.Context) {
var f dashboardBuiltinImportForm var f dashboardBuiltinImportForm
ginx.BindJSON(c, &f) ginx.BindJSON(c, &f)
dirpath := config.C.BuiltinAlertsDir dirpath := config.C.BuiltinDashboardsDir
if dirpath == "" { if dirpath == "" {
dirpath = path.Join(runner.Cwd, "etc", "dashboards") dirpath = path.Join(runner.Cwd, "etc", "dashboards")
} }