diff --git a/solr/webapp/web/libs/ngtimeago.js b/solr/webapp/web/libs/ngtimeago.js index 9d1b4277d4a..dc29b18dd2e 100644 --- a/solr/webapp/web/libs/ngtimeago.js +++ b/solr/webapp/web/libs/ngtimeago.js @@ -27,6 +27,10 @@ var catalyst = angular.module('ngtimeago', []); catalyst.filter('timeago', function() { return function(input, p_allowFuture) { + + if (input === undefined) { + return "-"; + } var substitute = function (stringOrFunction, number, strings) { var string = angular.isFunction(stringOrFunction) ? stringOrFunction(number, dateDifference) : stringOrFunction;