mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +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:
@@ -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] || "";
|
||||
|
Reference in New Issue
Block a user