Merge pull request #4085 from mabashian/4082-inv_obj

Ensure inventory_obj is on scope before checking it

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-06-17 18:08:43 +00:00 committed by GitHub
commit 5ed7db8cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,8 @@ function SmartInventoryEdit($scope, $location,
$scope.parseType = 'yaml';
$scope.inventory_obj = inventoryData;
$rootScope.breadcrumb.inventory_name = inventoryData.name;
ParseTypeChange({
scope: $scope,
@ -51,9 +53,6 @@ function SmartInventoryEdit($scope, $location,
$scope.canEditOrg = canEditOrg;
});
$scope.inventory_obj = inventoryData;
$rootScope.breadcrumb.inventory_name = inventoryData.name;
$scope.smart_hosts = {
host_filter: encodeURIComponent($scope.host_filter)
};