From 3a4589dc7974b68a330ce7c0d309d3412dbf4f63 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Wed, 12 Oct 2022 17:15:39 +0100 Subject: [PATCH] Transcluding functions: fix missing parameters passed as undefined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks @btheado – see https://github.com/Jermolene/TiddlyWiki5/pull/6666#issuecomment-1276187372 --- core/modules/widgets/transclude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 662665202..9b4c32c15 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -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] || "";