remove case sensitivity

This commit is contained in:
Ben Irvin 2023-05-18 17:16:02 +02:00
parent 6827350469
commit 5c5d27247b

View File

@ -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) => {