diff --git a/core/modules/filters/untagged.js b/core/modules/filters/untagged.js index 31a1d1c4f..5a08b4edc 100644 --- a/core/modules/filters/untagged.js +++ b/core/modules/filters/untagged.js @@ -25,10 +25,8 @@ exports.untagged = function(source,operator,options) { }); } else { source(function(tiddler,title) { - if(tiddler) { - if(!tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { - $tw.utils.pushTop(results,title); - } + if(!tiddler || !tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { + $tw.utils.pushTop(results,title); } }); }