mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Transcluding functions: fix missing parameters passed as undefined
Thanks @btheado – see https://github.com/Jermolene/TiddlyWiki5/pull/6666#issuecomment-1276187372
This commit is contained in:
parent
76bc3a7358
commit
3a4589dc79
@ -220,7 +220,7 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
|
||||
} else if(self.hasAttribute(index + "")) {
|
||||
variables[name] = self.getAttribute(index + "");
|
||||
} else {
|
||||
variables[name] = param["default"];
|
||||
variables[name] = param["default"] || "";
|
||||
}
|
||||
});
|
||||
var result = this.wiki.filterTiddlers(srcVariable.value,this.makeFakeWidgetWithVariables(variables),this.wiki.makeTiddlerIterator([]))[0] || "";
|
||||
|
Loading…
Reference in New Issue
Block a user