From f4ac8358459f3e45197d63a6e6fe4514ed280650 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 23 Jul 2015 02:59:56 -0400 Subject: [PATCH] fixed console error for undefined name on object due to being logged out --- awx/ui/static/js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/app.js b/awx/ui/static/js/app.js index e8f65b5a6d..113d16a268 100644 --- a/awx/ui/static/js/app.js +++ b/awx/ui/static/js/app.js @@ -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