From f0cfd1b309b226780c32d934d0fef5992d2ef14d Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 5 Apr 2023 17:26:33 +0200 Subject: [PATCH] fix(frontend): community tab navigation --- frontend/src/pages/Community.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index 20e7d3fe6..ba5209a89 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -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() {