🐛 Fix current project when having multiple

This commit is contained in:
brunosimon
2017-12-25 18:15:59 +01:00
parent eeb0ce215a
commit 2c3fe48cfc
20 changed files with 42 additions and 6 deletions
+2 -6
View File
@@ -24,13 +24,9 @@ export default {
// No current project
else
{
// Set first project as current
const projectKeys = Object.keys(state.all)
// If only one project, set has current
if(projectKeys.length === 1)
{
state.current = state.all[projectKeys[0]]
}
state.current = state.all[projectKeys[0]]
}
},