mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
remove case sensitivity
This commit is contained in:
parent
6827350469
commit
5c5d27247b
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user