fix(frontend): community tab navigation

This commit is contained in:
Moriz Wahl 2023-04-05 17:26:33 +02:00
parent fa036741c1
commit f0cfd1b309

View File

@ -96,8 +96,8 @@ export default {
openCreations: [],
}
},
mounted() {
this.updateTabIndex()
async mounted() {
await this.updateTabIndex()
},
apollo: {
OpenCreations: {
@ -196,7 +196,9 @@ export default {
methods: {
updateTabIndex() {
const index = COMMUNITY_TABS.indexOf(this.$route.params.tab)
this.tabIndex = index > -1 ? index : 0
this.$nextTick(() => {
this.tabIndex = index > -1 ? index : 0
})
this.closeAllOpenCollapse()
},
closeAllOpenCollapse() {