diff --git a/addon/core/transition-data.js b/addon/core/transition-data.js index cfcd631c..cbd24ac3 100644 --- a/addon/core/transition-data.js +++ b/addon/core/transition-data.js @@ -40,8 +40,11 @@ prototype.activateRoute = function activateRoute(route) { prototype.routeFinishedSetup = function routeFinishedSetup(route) { let endTime = t(); let [r] = this.routes.filter((r) => r.name === route.routeName); - r.endTime = endTime; - r.elapsedTime = r.endTime - r.startTime; + + if (r) { + r.endTime = endTime; + r.elapsedTime = r.endTime - r.startTime; + } }; prototype._viewAdded = function _viewAdded(view, index) {