From eda2a05008b9e383150394e22d9cb67df5910cb5 Mon Sep 17 00:00:00 2001 From: Lukas Hroch Date: Wed, 4 Dec 2024 11:40:23 +0000 Subject: [PATCH] fix(survey): correctly typed optional surveyId --- apps/survey/src/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/survey/src/app.vue b/apps/survey/src/app.vue index 051cc4f5f..61a573128 100644 --- a/apps/survey/src/app.vue +++ b/apps/survey/src/app.vue @@ -162,7 +162,7 @@ export default defineComponent({ const title = computed(() => t(route.meta?.title ?? 'common._')); const windowInnerHeight = computed(() => window.innerHeight); - const surveyId = computed(() => route.params.surveyId.toString()); + const surveyId = computed(() => route.params.surveyId?.toString()); const showContact = computed(() => route.name === 'home'); function toggleSidebar() {