mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 15:53:36 -05:00
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