mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Check if params object exists
This commit is contained in:
parent
a7dbb78c2e
commit
7386ed694a
@ -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,
|
||||
url = GetBasePath('organizations') + id + '/';
|
||||
|
||||
@ -57,7 +57,7 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
||||
msg: `Failed to retrieve organization. GET status: ${status}`
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if ($scope.removeChoicesReady) {
|
||||
$scope.removeChoicesReady();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user