From 271790cba0b8ee429633bbc7d73c70c63506d392 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 31 Aug 2022 16:41:10 +0100 Subject: [PATCH] ensure default tab loads --- src/components/user_profile/user_profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 3e3f3445..89cd95fd 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -48,7 +48,8 @@ const UserProfile = { }, created () { const routeParams = this.$route.params - this.tab = get(this.$route, 'hash', defaultTabKey).replace(/^#/, '') + const hash = get(this.$route, 'hash', defaultTabKey).replace(/^#/, '') + if (hash !== '') this.tab = hash this.load(routeParams.name || routeParams.id) }, unmounted () {