Skip to content

Commit 4f6db01

Browse files
committed
added options validation
1 parent 230aff8 commit 4f6db01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Routes {
103103

104104
getRouter (Router) {
105105
const wrap = method => (route, params, options) => {
106-
const {trailingSlash} = options
106+
const {trailingSlash} = options || {}
107107
const {byName, urls: {as, href}} = this.findAndGetUrls(route, params, trailingSlash)
108108
return Router[method](href, as, byName ? options : params)
109109
}

0 commit comments

Comments
 (0)