Fix/self transclude (#8254)

* fix: ignore empty tiddler param when extract transcludes

* test: about self transclude
This commit is contained in:
lin onetwo
2024-06-12 09:39:43 +01:00
committed by GitHub
parent d276e0aa25
commit 32cbc97a0c
2 changed files with 72 additions and 2 deletions
+1 -1
View File
@@ -567,7 +567,7 @@ exports.extractTranscludes = function(parseTreeRoot) {
} else {
value = parseTreeNode.attributes.$tiddler.value;
}
if(transcludes.indexOf(value) === -1) {
if(transcludes.indexOf(value) === -1 && value !== undefined) {
transcludes.push(value);
}
}