🐛 Site > Fix reseting project

This commit is contained in:
brunosimon
2017-08-15 00:04:16 +02:00
parent 3aacc7fcc1
commit 4cad89ae9d
14 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ export default {
if(state.current)
{
// Current project has been removed
if(typeof state.all[data] === 'undefined')
if(typeof state.all[state.current.slug] === 'undefined')
{
state.current = null
}
@@ -46,6 +46,6 @@ export default {
{
state.current = state.all[data]
}
},
}
}
}