From 961eccafa0a9c881f7a1af720fba32d12699f473 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 11 Jun 2024 19:09:20 -1000 Subject: [PATCH] fix: :bug: Don't set the page title as 'error' when there isn't one --- components/errors/ErrorBoundary.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/errors/ErrorBoundary.vue b/components/errors/ErrorBoundary.vue index 8e1bdfb..e945cf3 100644 --- a/components/errors/ErrorBoundary.vue +++ b/components/errors/ErrorBoundary.vue @@ -27,15 +27,15 @@ const error = ref<{ useListen("error", (err) => { error.value = err; + + useHead({ + title: err?.title, + }); }); const back = () => { useRouter().back(); }; - -useHead({ - title: computed(() => error.value?.title || "Error"), -});