Skip to content

Commit

Permalink
fix(route-loading): use correct rejection callback
Browse files Browse the repository at this point in the history
There was a copy/paste error in the code which resulted in an undefined
symbol being used as the rejection callback. This commit fixes the
error.
  • Loading branch information
EisenbergEffect committed Dec 22, 2014
1 parent db95239 commit 74799a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function resolveComponent(routeLoader, router, viewPortPlan) {
function getComponent(routerViewPort) {
routerViewPort.getComponent(type, createChildRouter, viewPortPlan.config)
.then(resolve)
.catch(error);
.catch(reject);
}

if (possibleRouterViewPort) {
Expand Down

0 comments on commit 74799a2

Please sign in to comment.