From 67dfa43e8df1dbf3a3238a452531c10da46325b8 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 27 Feb 2020 13:36:50 -0500 Subject: Render more about values --- lib/serve.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index 556e70f..5f873e2 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1044,9 +1044,10 @@ Serve.prototype.about = function (path) { } function renderAboutOpValue(value) { - if (!value) return - if (u.isRef(value.link)) return self.phIdLink(value.link) - if (value.epoch) return new Date(value.epoch).toUTCString() + if (typeof value === 'object' && value !== null) { + if (u.isRef(value.link)) return self.phIdLink(value.link) + if (value.epoch) return new Date(value.epoch).toUTCString() + } return ph('code', {}, JSON.stringify(value)) } -- cgit v1.2.3