diff --git a/src/app/filters.js b/src/app/filters.js index 09d6778..96c4b06 100644 --- a/src/app/filters.js +++ b/src/app/filters.js @@ -42,7 +42,11 @@ angular.module('supportAdminApp') }; }) .filter('fmtDate', function () { - return function (date) { + return function (date, blankOnNull) { + if (blankOnNull && !date) { + return ''; + } + date = date ? new Date(date) : new Date(); var yyyy = date.getFullYear(); var mm = _.padStart(date.getMonth() + 1, 2, '0'); diff --git a/src/app/work/projects.html b/src/app/work/projects.html index cf73d8b..5758062 100644 --- a/src/app/work/projects.html +++ b/src/app/work/projects.html @@ -153,7 +153,12 @@