mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 12:55:04 -02:30
Checking for valid object in ProcessErrors
This commit is contained in:
@@ -252,7 +252,7 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
||||
if ((!fieldErrors) && defaultMsg) {
|
||||
Alert(defaultMsg.hdr, defaultMsg.msg);
|
||||
}
|
||||
} else if (typeof data === 'object'){
|
||||
} else if (typeof data === 'object' && data !== null){
|
||||
if(Object.keys(data).length > 0) {
|
||||
keys = Object.keys(data);
|
||||
if (Array.isArray(data[keys[0]])) {
|
||||
|
||||
Reference in New Issue
Block a user