mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-27 19:23:35 -05:00
Fallback to first hostname if only 1 host
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user