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