DataInventory
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()
})