From 5c5d27247b2cd77d49d2160e7654fa8fad2a0035 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Thu, 18 May 2023 17:16:02 +0200 Subject: [PATCH] remove case sensitivity --- packages/core/utils/lib/convert-query-params.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/core/utils/lib/convert-query-params.js b/packages/core/utils/lib/convert-query-params.js index 9821890726..164977a61a 100644 --- a/packages/core/utils/lib/convert-query-params.js +++ b/packages/core/utils/lib/convert-query-params.js @@ -408,13 +408,7 @@ const isValidSchemaAttribute = (key, schema) => { return false; } - // case insensitive check if the attribute exists in the schema - const findAttribute = key.toLowerCase(); - return ( - Object.keys(schema.attributes) - .map((attributeName) => attributeName.toLowerCase()) - .includes(findAttribute) - ); + return Object.keys(schema.attributes).includes(key); }; const convertFiltersQueryParams = (filters, schema) => {