mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-24 22:33:16 +00:00
Fixed issue where [lookup[]] could emit undefined (#5376)
This commit is contained in:
parent
e280f89ca5
commit
b632cea6b7
|
@ -22,7 +22,7 @@ Export our filter function
|
||||||
exports.lookup = function(source,operator,options) {
|
exports.lookup = function(source,operator,options) {
|
||||||
var results = [];
|
var results = [];
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
results.push(options.wiki.getTiddlerText(operator.operand + title) || operator.suffix);
|
results.push(options.wiki.getTiddlerText(operator.operand + title) || operator.suffix || '');
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user