mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
fixed console error for undefined name on object due to being logged out
This commit is contained in:
@@ -1050,8 +1050,9 @@ var tower = angular.module('Tower', [
|
|||||||
|
|
||||||
$rootScope.$on("$routeChangeStart", function (event, next, prev) {
|
$rootScope.$on("$routeChangeStart", function (event, next, prev) {
|
||||||
// this line removes the query params attached to a route
|
// this line removes the query params attached to a route
|
||||||
if(prev.$$route.name === 'systemTracking'){
|
if(prev && prev.$$route &&
|
||||||
$location.replace($location.search('').$$url);
|
prev.$$route.name === 'systemTracking'){
|
||||||
|
$location.replace($location.search('').$$url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Before navigating away from current tab, make sure the primary view is visible
|
// Before navigating away from current tab, make sure the primary view is visible
|
||||||
|
|||||||
Reference in New Issue
Block a user