mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
Annotations: Ignore cancelled annotation queries (#26681)
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user