Commit 3f212836 by Torkel Ödegaard Committed by GitHub

Annotations: Ignore cancelled annotation queries (#26681)

parent eb0b9de0
...@@ -59,9 +59,14 @@ export class AnnotationsSrv { ...@@ -59,9 +59,14 @@ export class AnnotationsSrv {
}; };
}) })
.catch(err => { .catch(err => {
if (err.cancelled) {
return [];
}
if (!err.message && err.data && err.data.message) { if (!err.message && err.data && err.data.message) {
err.message = err.data.message; err.message = err.data.message;
} }
console.error('AnnotationSrv.query error', err); console.error('AnnotationSrv.query error', err);
appEvents.emit(AppEvents.alertError, ['Annotation Query Failed', err.message || err]); appEvents.emit(AppEvents.alertError, ['Annotation Query Failed', err.message || err]);
return []; 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