1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +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];
}
}
});