We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc6119 commit a1565a2Copy full SHA for a1565a2
app/server/static/components/annotationMixin.js
@@ -90,11 +90,7 @@ export default {
90
this.next = response.data.next;
91
this.prev = response.data.previous;
92
this.count = response.data.count;
93
- this.annotations = [];
94
- for (let i = 0; i < this.docs.length; i++) {
95
- const doc = this.docs[i];
96
- this.annotations.push(doc.annotations);
97
- }
+ this.annotations = this.docs.map(doc => doc.annotations);
98
this.offset = getOffsetFromUrl(this.url);
99
});
100
},
0 commit comments