diff --git a/core/modules/filters/has.js b/core/modules/filters/has.js index 7b2fde46d..7a1738782 100644 --- a/core/modules/filters/has.js +++ b/core/modules/filters/has.js @@ -25,7 +25,7 @@ exports.has = function(source,operator,options) { }); } else { source(function(tiddler,title) { - if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && (tiddler.fields[operator.operand] !== "" || ($tw.utils.isArray(tiddler.fields[operator.operand]) && tiddler.fields[operator.operand].length == 0))) { + if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && !(tiddler.fields[operator.operand] === "" || tiddler.fields[operator.operand].length === 0)) { results.push(title); } });