From cdca79032526966cb248b72bddcf2a0f888c8a8f Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 6 Feb 2026 10:49:38 +0100 Subject: [PATCH] fix: guard against undefined route.name in auth layout check route.name can be undefined during initial route resolution or for unnamed routes. Without this guard, AUTH_ROUTE_NAMES.has() would return false and the authenticated layout could flash briefly. --- frontend/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index f9164c699..c727d896b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -58,7 +58,7 @@ const baseStore = useBaseStore() const route = useRoute() -const showAuthLayout = computed(() => authStore.authUser && !AUTH_ROUTE_NAMES.has(route.name as string)) +const showAuthLayout = computed(() => authStore.authUser && typeof route.name === 'string' && !AUTH_ROUTE_NAMES.has(route.name)) useBodyClass('is-touch', isTouchDevice()) const keyboardShortcutsActive = computed(() => baseStore.keyboardShortcutsActive)