Commit 3f212836 by Torkel Ödegaard Committed by GitHub

Annotations: Ignore cancelled annotation queries (#26681)

parent eb0b9de0
......@@ -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 [];
......
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