mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Fixed bug where deleting inv script used in inv source broke inv source edit page
This commit is contained in:
parent
904c90f7e5
commit
34b4d0f690
@ -41,7 +41,7 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
}
|
||||
|
||||
// display custom inventory_script name
|
||||
if (inventorySourceData.source === 'custom') {
|
||||
if (inventorySourceData.source === 'custom' && inventorySourceData.summary_fields.source_script) {
|
||||
$scope.inventory_script_name = inventorySourceData.summary_fields.source_script.name;
|
||||
}
|
||||
$scope = angular.extend($scope, inventorySourceData);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user