1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fixed route undefined console error

This commit is contained in:
John Mitchell 2015-06-08 12:05:25 -04:00
parent e379996a84
commit 8a21a639a5

View File

@ -14,7 +14,7 @@ export default ['$route', '$rootScope', function($route, $rootScope) {
});
scope.$on('$routeChangeSuccess', function(e, nextRoute) {
if (nextRoute.$$route.name === routeName) {
if (nextRoute.$$route && nextRoute.$$route.name === routeName) {
element.addClass('MenuItem--active');
} else {
element.removeClass('MenuItem--active');