fix: Await initialize when TimelineSpace is created

This commit is contained in:
AkiraFukushima 2018-11-17 17:49:52 +09:00
parent e4cea39b1a
commit 28b76ff03c
1 changed files with 2 additions and 2 deletions

View File

@ -50,9 +50,9 @@ export default {
return !this.modalOpened
}
},
created () {
async created () {
this.$store.commit('TimelineSpace/changeLoading', true)
this.initialize()
await this.initialize()
.finally(() => {
this.$store.commit('TimelineSpace/changeLoading', false)
this.$store.commit('GlobalHeader/updateChanging', false)