mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Check if params object exists
This commit is contained in:
@@ -42,7 +42,7 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($state.params.organization_id) {
|
if ($state.params && $state.params.organization_id) {
|
||||||
let id = $state.params.organization_id,
|
let id = $state.params.organization_id,
|
||||||
url = GetBasePath('organizations') + id + '/';
|
url = GetBasePath('organizations') + id + '/';
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
|||||||
msg: `Failed to retrieve organization. GET status: ${status}`
|
msg: `Failed to retrieve organization. GET status: ${status}`
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
if ($scope.removeChoicesReady) {
|
if ($scope.removeChoicesReady) {
|
||||||
$scope.removeChoicesReady();
|
$scope.removeChoicesReady();
|
||||||
|
|||||||
Reference in New Issue
Block a user