mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Job detail page refactor
Fixed empty object detection
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user