1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-06 22:04:19 +00:00

Fix regression with untagged filter operator

Restored previous behaviour of considering a missing tiddler to be
untagged.
This commit is contained in:
Jermolene 2014-04-17 16:10:50 +01:00
parent d336ffea02
commit 73cfd10218

View File

@ -25,10 +25,8 @@ exports.untagged = function(source,operator,options) {
}); });
} else { } else {
source(function(tiddler,title) { source(function(tiddler,title) {
if(tiddler) { if(!tiddler || !tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) {
if(!tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { $tw.utils.pushTop(results,title);
$tw.utils.pushTop(results,title);
}
} }
}); });
} }