From bb7e756e6f2c260487c5fdf6089ce4f35f1ab6c6 Mon Sep 17 00:00:00 2001 From: vagrant Date: Tue, 8 Apr 2014 14:22:53 +0000 Subject: [PATCH] Fix for when job.finished === null, so that ('date') doesn't break. --- awx/ui/static/js/controllers/Inventories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js index dfe5f28b5f..a4b237fb6a 100644 --- a/awx/ui/static/js/controllers/Inventories.js +++ b/awx/ui/static/js/controllers/Inventories.js @@ -188,7 +188,7 @@ function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $com html += "\n"; - html += "" + ($filter('date')(row.finished,'MM/dd HH:mm:ss')).replace(/ /,'
') + ""; + html += "" + ((row.finished) ? ( ($filter('date')(row.finished,'MM/dd HH:mm:ss')).replace(/ /,'
') ) : '') + ""; html += "Events
" + "Hosts"; html += "" + ellipsis(row.name) + "";