mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
Fix setup.yml
This commit is contained in:
committed by
Chris Houseknecht
parent
c1cc2a1e0b
commit
2afd8d44e7
@@ -51,7 +51,7 @@ function Authenticate($scope, $rootScope, $location, Authorization, ToggleClass,
|
||||
});
|
||||
})
|
||||
.error( function(data, status, headers, config) {
|
||||
if ( data && data.non_field_errors.length == 0 ) {
|
||||
if ( data.non_field_errors && data.non_field_errors.length == 0 ) {
|
||||
// show field specific errors returned by the API
|
||||
for (var key in data) {
|
||||
$scope[key + 'Error'] = data[key][0];
|
||||
|
||||
Reference in New Issue
Block a user