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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user