1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-05 00:08:06 +00:00

Fixed bug introduced into transclusions for blank fields in #5736 (#5835)

This commit is contained in:
Saq Imtiaz
2021-06-29 13:07:14 +02:00
committed by GitHub
parent 338b7c92a2
commit a6990128f1
2 changed files with 13 additions and 4 deletions

View File

@@ -977,7 +977,7 @@ exports.getTextReferenceParserInfo = function(title,field,index,options) {
if(field === "title") {
parserInfo.sourceText = title;
} else if(tiddler && tiddler.fields) {
parserInfo.sourceText = tiddler.fields[field] ? tiddler.fields[field].toString() : null;
parserInfo.sourceText = tiddler.hasField(field) ? tiddler.fields[field].toString() : null;
}
} else if(index) {
this.getTiddlerText(title); // Force the tiddler to be lazily loaded