Commit df1a41d3 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

chore: condition statement

parent 91864dc7
......@@ -177,7 +177,7 @@ export default {
if (annotations.annotationCollection.first) {
this.request(annotations.annotationCollection.first)
.then((current) => {
if (current.annotationPage.items && current.annotationPage.items.length) {
if (current.annotationPage.items.length) {
this.annotations = this.filterAnnotations(current.annotationPage.items);
} else this.annotations = [];
});
......
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