mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
fix submit when no input object defined
This commit is contained in:
@@ -108,7 +108,9 @@ function EditCredentialsController (models, $state, $scope, strings, componentsS
|
||||
data.user = me.get('id');
|
||||
credential.unset('inputs');
|
||||
|
||||
delete data.inputs[gceFileInputSchema.id];
|
||||
if (_.get(data.inputs, gceFileInputSchema.id)) {
|
||||
delete data.inputs[gceFileInputSchema.id];
|
||||
}
|
||||
|
||||
return credential.request('put', { data });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user