1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07: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 {
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);
}
});
}