1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-04 15:58:05 +00:00

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 16:39:43 +08:00
committed by GitHub
parent d276e0aa25
commit 32cbc97a0c
2 changed files with 72 additions and 2 deletions

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);
}
}