mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
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