From cf15b128c16f45a5f0139a91ce21107c6dccf2a8 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 11 Nov 2012 14:40:49 +0000 Subject: [PATCH] Fixed problem with relativedate field viewer --- core/modules/macros/view/viewers/relativedate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/macros/view/viewers/relativedate.js b/core/modules/macros/view/viewers/relativedate.js index 849392eb7..c6912639b 100644 --- a/core/modules/macros/view/viewers/relativedate.js +++ b/core/modules/macros/view/viewers/relativedate.js @@ -20,7 +20,7 @@ var RelativeDateViewer = function(viewMacro,tiddler,field,value) { }; RelativeDateViewer.prototype.render = function() { - if(this.value === undefined) { + if(!this.tiddler ||this.value === undefined) { return $tw.Tree.Text(""); } else { this.relativeDate = $tw.utils.getRelativeDate((new Date()) - this.value);