From 8868235af264ddfd92582d80214046f5a5df5708 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Wed, 3 Jun 2015 12:15:16 -0400 Subject: [PATCH] Fallback to first hostname if only 1 host --- awx/ui/static/js/system-tracking/system-tracking.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/system-tracking/system-tracking.controller.js b/awx/ui/static/js/system-tracking/system-tracking.controller.js index b7a159bdb8..b6e3553b0b 100644 --- a/awx/ui/static/js/system-tracking/system-tracking.controller.js +++ b/awx/ui/static/js/system-tracking/system-tracking.controller.js @@ -44,7 +44,7 @@ function controller($rootScope, $scope.rightScanDate = initialFactData.rightScanDate; $scope.leftHostname = hosts[0].name; - $scope.rightHostname = hosts[1].name; + $scope.rightHostname = hosts.length > 1 ? hosts[1].name : hosts[0].name; function setHeaderValues(viewType) { if (viewType === 'singleHost') {