Skip to content

Commit

Permalink
fix: router Expected "0" to be defined (#4394)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and pi0 committed Nov 27, 2018
1 parent 054fbbc commit 22679cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/utils.js
Expand Up @@ -393,7 +393,7 @@ function tokensToFunction(tokens) {
continue
}

var value = data[token.name]
var value = data[token.name || 'pathMatch']
var segment

if (value == null) {
Expand Down

0 comments on commit 22679cb

Please sign in to comment.