From b1fe3fe29b3f7c8e3f1fa279b74f674bc63db232 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 4 Sep 2023 21:33:50 +0200 Subject: [PATCH] fix: don't render route modal when no properties are defined --- src/composables/useRouteWithModal.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/composables/useRouteWithModal.ts b/src/composables/useRouteWithModal.ts index a384e0a8e..9f6fdb72a 100644 --- a/src/composables/useRouteWithModal.ts +++ b/src/composables/useRouteWithModal.ts @@ -32,6 +32,11 @@ export function useRouteWithModal() { : routePropsOption : {} + if (typeof routeProps === 'undefined') { + currentModal.value = undefined + return + } + routeProps.backdropView = backdropView.value const component = route.matched[0]?.components?.default