From 6e1687a651fb69b5af80f5bc2264ca8b6f0e14d7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 7 Nov 2022 11:29:15 +0100 Subject: [PATCH] Fix order of useHead registration on JoinGroupWithAccount view Signed-off-by: Thomas Citharel --- js/src/components/Group/JoinGroupWithAccount.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/src/components/Group/JoinGroupWithAccount.vue b/js/src/components/Group/JoinGroupWithAccount.vue index 05459327a..488cc9ca2 100644 --- a/js/src/components/Group/JoinGroupWithAccount.vue +++ b/js/src/components/Group/JoinGroupWithAccount.vue @@ -26,6 +26,14 @@ const { group } = useGroup(props.preferredUsername); const { t } = useI18n({ useScope: "global" }); +const groupTitle = computed((): undefined | string => { + return group && displayName(group.value); +}); + +const uri = computed((): string | undefined => { + return group.value?.url; +}); + useHead({ title: computed(() => t("Join group {group}", { @@ -33,12 +41,4 @@ useHead({ }) ), }); - -const uri = computed((): string | undefined => { - return group.value?.url; -}); - -const groupTitle = computed((): undefined | string => { - return group && displayName(group.value); -});