feat(alerting): make sure dashboard id exists
This commit is contained in:
@@ -150,7 +150,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) {
|
||||
}
|
||||
|
||||
saveAlertCommand := m.SaveAlertsCommand{
|
||||
DashboardId: dash.Id,
|
||||
DashboardId: cmd.Result.Id,
|
||||
OrgId: c.OrgId,
|
||||
UserId: c.UserId,
|
||||
Alerts: cmd.GetAlertModels(),
|
||||
|
||||
Reference in New Issue
Block a user