1
0
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:
Jeremy Ruston
2025-03-10 15:31:28 +00:00
parent c5ad429493
commit 4cfa758d51
+1 -1
View File
@@ -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 {