mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Ignore cancelled annotation queries (#26681)
This commit is contained in:
parent
eb0b9de044
commit
3f21283655
@ -59,9 +59,14 @@ export class AnnotationsSrv {
|
||||
};
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.cancelled) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (!err.message && err.data && err.data.message) {
|
||||
err.message = err.data.message;
|
||||
}
|
||||
|
||||
console.error('AnnotationSrv.query error', err);
|
||||
appEvents.emit(AppEvents.alertError, ['Annotation Query Failed', err.message || err]);
|
||||
return [];
|
||||
|
Loading…
Reference in New Issue
Block a user