mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Handle typeof job query response error
This commit is contained in:
parent
f14efbce4e
commit
7c58923a84
@ -254,7 +254,8 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
|
||||
},
|
||||
error(data, status) {
|
||||
if(data && data.detail){
|
||||
let error = JSON.parse(data.detail);
|
||||
let error = typeof data.detail === "string" ? data.detail : JSON.parse(data.detail);
|
||||
|
||||
if(_.isArray(error)){
|
||||
data.detail = error[0];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user