From d111c7b41c864146d52d0dd0e53c2f9f66ba54a5 Mon Sep 17 00:00:00 2001 From: Tanshu Date: Thu, 6 Jun 2013 23:53:53 +0530 Subject: [PATCH] Angular_filter for localTime error fixed when input is undefined. --- brewman/brewman/static/offline.appcache | 2 +- brewman/brewman/static/scripts/angular_filter.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/brewman/brewman/static/offline.appcache b/brewman/brewman/static/offline.appcache index 967a5606..d3497fa9 100644 --- a/brewman/brewman/static/offline.appcache +++ b/brewman/brewman/static/offline.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# version 2013-06-06.2 +# version 2013-06-06.3 CACHE: /partial/404.html diff --git a/brewman/brewman/static/scripts/angular_filter.js b/brewman/brewman/static/scripts/angular_filter.js index 07452e1c..2845049b 100644 --- a/brewman/brewman/static/scripts/angular_filter.js +++ b/brewman/brewman/static/scripts/angular_filter.js @@ -90,6 +90,9 @@ overlord_filter.filter('localTime', function () { } return function (input) { + if (typeof input === 'undefined') { + return ''; + } var d = input.match(/(\w+)/g); if (d.length !== 5) { return input;