1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-30 07:50:47 +00:00

Update function operator to return the input list if the function is missing

This commit is contained in:
jeremy@jermolene.com 2022-09-11 10:48:05 +01:00
parent ecd467496d
commit 68a1d61f33

View File

@ -38,8 +38,12 @@ exports.function = function(source,operator,options) {
return list;
}
}
// Return an empty list if the function wasn't found
return [];
// Return the input list if the function wasn't found
var results = [];
source(function(tiddler,title) {
results.push(title);
});
return results;
};
})();