Skip to content

Commit 486cfab

Browse files
committed
Fix a regression
1 parent 757e1b0 commit 486cfab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/components/Routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function computeNextState(component, transition, callback) {
299299
if (error || transition.isAborted)
300300
return callback(error);
301301

302-
var matches = currentMatches.slice(0, -fromMatches.length).concat(toMatches);
302+
var matches = currentMatches.slice(0, currentMatches.length - fromMatches.length).concat(toMatches);
303303
var rootMatch = getRootMatch(matches);
304304
var params = (rootMatch && rootMatch.params) || {};
305305
var routes = matches.map(function (match) {

0 commit comments

Comments
 (0)