fix: don't render route modal when no properties are defined
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5720a86bc3
commit
b1fe3fe29b
@ -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
|
||||
|
Reference in New Issue
Block a user