1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-16 07:17:21 +00:00

Fix crash with search operator with blank field list

This commit is contained in:
Jermolene
2018-11-01 12:56:56 +00:00
parent dff5315afe
commit b584295831
2 changed files with 10 additions and 6 deletions

View File

@@ -1100,7 +1100,9 @@ exports.search = function(text,options) {
if(options.field) {
if($tw.utils.isArray(options.field)) {
$tw.utils.each(options.field,function(fieldName) {
fields.push(fieldName);
if(fieldName) {
fields.push(fieldName);
}
});
} else {
fields.push(options.field);