mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Fix crash with "fields" filter operator applied to missing tiddlers
Fixes #132
This commit is contained in:
parent
6b70b0bf7c
commit
5fe2d718e0
@ -22,8 +22,10 @@ exports.fields = function(source,operator,options) {
|
|||||||
function checkTiddler(title) {
|
function checkTiddler(title) {
|
||||||
// Return the fields on the specified tiddler
|
// Return the fields on the specified tiddler
|
||||||
var tiddler = options.wiki.getTiddler(title);
|
var tiddler = options.wiki.getTiddler(title);
|
||||||
for(var fieldName in tiddler.fields) {
|
if(tiddler) {
|
||||||
$tw.utils.pushTop(results,fieldName);
|
for(var fieldName in tiddler.fields) {
|
||||||
|
$tw.utils.pushTop(results,fieldName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Iterate through the source tiddlers
|
// Iterate through the source tiddlers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user