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