mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Avoid NPE with annotations query (#82216)
This commit is contained in:
@@ -216,7 +216,7 @@ export class GrafanaDatasource extends DataSourceWithBackend<GrafanaQuery> {
|
||||
|
||||
if (target.type === GrafanaAnnotationType.Dashboard) {
|
||||
// if no dashboard id yet return
|
||||
if (!options.dashboard.uid) {
|
||||
if (!options.dashboard?.uid) {
|
||||
return Promise.resolve({ data: [] });
|
||||
}
|
||||
// filter by dashboard id
|
||||
|
||||
Reference in New Issue
Block a user