ensure default tab loads
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
FloatingGhost 2022-08-31 16:41:10 +01:00
parent 6d44c67197
commit 271790cba0

View file

@ -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 () {