mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-04 04:43:52 +00:00
Fixed varlist crash with empty parameter
This commit is contained in:
parent
c5ad429493
commit
4cfa758d51
@ -19,7 +19,7 @@ Export our filter function
|
|||||||
*/
|
*/
|
||||||
exports.varlist = function(source,operator,options) {
|
exports.varlist = function(source,operator,options) {
|
||||||
// Check for common optimisations
|
// Check for common optimisations
|
||||||
var variableInfo = options.widget.getVariableInfo(operator.operand);
|
var variableInfo = operator.operand && options.widget.getVariableInfo(operator.operand);
|
||||||
if(variableInfo) {
|
if(variableInfo) {
|
||||||
return options.wiki.makeTiddlerIterator(variableInfo.resultList);
|
return options.wiki.makeTiddlerIterator(variableInfo.resultList);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user