Merge branch 'main' into toolbar

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2021-10-24 16:32:37 -07:00
commit bfee928e45
1 file changed
+3 -3
+3 -3
View File
@@ -23,9 +23,9 @@ export default (expression) => {
if (expression) {
const evaluator = makeEvaluator(expression);
// Since API query selectors begin with `/item`, the instance is wrapped.
return (item) => {
const json = quickSerialize(item);
return evaluator({ item: json });
return (record) => {
const item = quickSerialize(record);
return evaluator({ item });
};
} else {
// If no expression was passed, always return true,