DataInventory

fix: return null dates

3/17/2020 9:50:36 AM

Changes

start/hooks.js 1(+1 -0)

Details

start/hooks.js 1(+1 -0)

diff --git a/start/hooks.js b/start/hooks.js
index 09387e8..5fd426b 100644
--- a/start/hooks.js
+++ b/start/hooks.js
@@ -9,6 +9,7 @@ hooks.after.providersBooted(() => {
     })
 
     View.global('TO_LOCALE', function (d) {
+        if(!d) return null 
         var d = new Date(d)
         return d.toLocaleDateString()
     })