Commit 9daaf725 authored by Anton's avatar Anton

Fix type filter for grouping by type in SwimLane.vue

parent 94047ef8
......@@ -328,8 +328,7 @@
return sum
}, [])
for (let group of groups) {
filtered[group] = this.annotations.filter(annotation => annotation.body.type === group ||
annotation.body.source.type === group)
filtered[group] = this.annotations.filter(annotation => (annotation.body.type || annotation.body.source.type) === group)
}
}
else if (this.groupAnnotationsBy === 'creator') {
......
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