From eefdae1e5ecdab40b99e56ad628401bc36e4cfff Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Mon, 22 May 2023 10:27:39 +0200 Subject: [PATCH] require matching case for operators --- packages/core/utils/lib/convert-query-params.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/utils/lib/convert-query-params.js b/packages/core/utils/lib/convert-query-params.js index 164977a61a..013f0d24a7 100644 --- a/packages/core/utils/lib/convert-query-params.js +++ b/packages/core/utils/lib/convert-query-params.js @@ -445,7 +445,7 @@ const convertAndSanitizeFilters = (filters, schema) => { // Here, `key` can either be an operator or an attribute name for (const [key, value] of Object.entries(filters)) { const attribute = get(key, schema?.attributes); - const validKey = isOperator(key, true) || isValidSchemaAttribute(key, schema); + const validKey = isOperator(key) || isValidSchemaAttribute(key, schema); if (!validKey) { removeOperator(key);