fix: don't render route modal when no properties are defined

This commit is contained in:
kolaente 2023-09-04 21:33:50 +02:00
parent 5720a86bc3
commit b1fe3fe29b
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -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