Commit bc5c69f3 authored by Martin Wortschack's avatar Martin Wortschack Committed by Kushal Pandya

Analytics: Fix sanity check in projects dropdown

parent 9761c317
......@@ -111,7 +111,7 @@ export default {
});
},
rowTemplate(project) {
const selected = this.defaultProjects.length
const selected = this.defaultProjects
? this.defaultProjects.find(p => p.id === project.id)
: false;
const isActiveClass = selected ? 'is-active' : '';
......
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