mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-06-01 02:02:24 +00:00
Fixed varlist crash with empty parameter
This commit is contained in:
@@ -19,7 +19,7 @@ Export our filter function
|
||||
*/
|
||||
exports.varlist = function(source,operator,options) {
|
||||
// Check for common optimisations
|
||||
var variableInfo = options.widget.getVariableInfo(operator.operand);
|
||||
var variableInfo = operator.operand && options.widget.getVariableInfo(operator.operand);
|
||||
if(variableInfo) {
|
||||
return options.wiki.makeTiddlerIterator(variableInfo.resultList);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user