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
+6 -2
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;
};
})();