From adabc37fd70f8d9291d23422c5ac80e476601f03 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Mon, 5 Dec 2016 17:09:02 -0800 Subject: [PATCH] Handle resolving with a component --- api/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/router.js b/api/router.js index f4fd93f0..a1f29203 100644 --- a/api/router.js +++ b/api/router.js @@ -25,7 +25,7 @@ module.exports = function($window, redrawService) { if (waiting != null) update(payload, component, params, path) else { waiting = Promise.resolve(payload.onmatch(params, path)) - .then(function() {update(payload, component, params, path)}) + .then(function(comp) {update(payload, comp != null ? comp : component, params, path)}) } } else update(payload, "div", params, path)