mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Job detail page refactor
Fixed empty object detection
This commit is contained in:
parent
d300eab790
commit
37cd9d9aeb
@ -453,7 +453,10 @@ function JobDetailController ($scope, $compile, $routeParams, $log, ClearScope,
|
||||
};
|
||||
|
||||
scope.objectIsEmpty = function(obj) {
|
||||
return (Object.keys(obj).length > 0) ? false : true;
|
||||
if (angular.isObject(obj)) {
|
||||
return (Object.keys(obj).length > 0) ? false : true;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
scope.HostDetailOnTotalScroll = _.debounce(function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user