mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-31 20:14:27 +00:00
Merge pull request #2294 from mklauber/patch-2
Update has.js for improvement to #2274
This commit is contained in:
commit
35fe5a5fc3
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user