mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Fix problem with transcluding non-string fields
Transcluding date or list fields (like `modified` or `tags`) was crashing.
This commit is contained in:
parent
2e188a48f4
commit
6a71b399b0
@ -757,7 +757,7 @@ exports.parseTextReference = function(title,field,index,options) {
|
|||||||
if(text === undefined) {
|
if(text === undefined) {
|
||||||
text = "";
|
text = "";
|
||||||
}
|
}
|
||||||
return this.parseText("text/vnd.tiddlywiki",text,options);
|
return this.parseText("text/vnd.tiddlywiki",text.toString(),options);
|
||||||
} else if(index) {
|
} else if(index) {
|
||||||
text = this.extractTiddlerDataItem(title,index,"");
|
text = this.extractTiddlerDataItem(title,index,"");
|
||||||
return this.parseText("text/vnd.tiddlywiki",text,options);
|
return this.parseText("text/vnd.tiddlywiki",text,options);
|
||||||
|
Loading…
Reference in New Issue
Block a user