Commit 27ec6427 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'mw-analytics-projects-dropdown-fix' into 'master'

Analytics: Fix sanity check in projects dropdown

See merge request gitlab-org/gitlab!21629
parents 9761c317 bc5c69f3
......@@ -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