mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 00:55:06 +03:00
Merge pull request #6582 from mabashian/6542-delete-inv-script-src
Fixed bug where deleting inv script used in inv source broke inv source edit page
This commit is contained in:
commit
b4b991425b
@ -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…
Reference in New Issue
Block a user