Commit 5756377c authored by A. Koch's avatar A. Koch

don"t throw on missing annotation

parent dc2e9fd8
Pipeline #1124 passed with stage
......@@ -41,7 +41,7 @@ class Metadata extends TinyEmitter {
try {
const result = await _this._annotations.getHandler(req)
annotation = result.data
source = annotation.body.source.id
source = annotation && annotation.body ? annotation.body.source.id : undefined
}
catch (e) { api.captureException(e) }
}
......
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