mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-25 08:37:16 +00:00
Fixed problem with getTextReference() not always returning a string
This commit is contained in:
1 parent
562591912e
commit
31a4b96f57
1 file changed
+1
-1
@@ -37,7 +37,7 @@ exports.getTextReference = function(textRef,defaultText,currTiddlerTitle) {
|
||||
if(tr.field) {
|
||||
var tiddler = this.getTiddler(title);
|
||||
if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {
|
||||
return tiddler.fields[tr.field];
|
||||
return tiddler.getFieldString(tr.field);
|
||||
} else {
|
||||
return defaultText;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user