Commit 20e631a2 by Torkel Ödegaard

fix: All alert annotations showed up in unsaved/new dashboards graph panels with alert, fixes #8361

parent 6d3246e3
......@@ -65,7 +65,7 @@ export class AnnotationsSrv {
var panel = options.panel;
var dashboard = options.dashboard;
if (panel && panel.alert) {
if (dashboard.id && panel && panel.alert) {
return this.backendSrv.get('/api/annotations', {
from: options.range.from.valueOf(),
to: options.range.to.valueOf(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment