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:
parent
e379996a84
commit
8a21a639a5
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user