Site > Versions > Active latest and keep active

This commit is contained in:
brunosimon
2017-08-29 19:48:52 +01:00
parent 2530f6ba5a
commit f2ca2ac277
7 changed files with 51 additions and 13 deletions
+3 -1
View File
@@ -35,9 +35,11 @@ export default {
{
const file = state.tree.getFile(data)
if(file)
if(!state.current || state.current.data.id !== file.data.id)
{
state.current = file
// console.log(state.current.data.versions.length)
// state.currentVersion = state.current.data.versions[state.current.data.versions.length - 1]
}
},