1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fix bug with importvariables and empty set widgets

A self-closing set widget doesn't have a "children" property.
This commit is contained in:
Jeremy Ruston 2020-01-03 10:39:37 +00:00
parent dd62efd459
commit 136dbf1a60

View File

@ -66,7 +66,7 @@ ImportVariablesWidget.prototype.execute = function(tiddlerList) {
params: parseTreeNode.params,
isMacroDefinition: parseTreeNode.isMacroDefinition
});
parseTreeNode = parseTreeNode.children[0];
parseTreeNode = parseTreeNode.children && parseTreeNode.children[0];
}
}
});