mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
clean
Signed-off-by: Virginie Ky <virginie.ky@gmail.com>
This commit is contained in:
parent
5614acdf9c
commit
a78cbf3c22
@ -27,7 +27,7 @@ const FiltersCard = ({ onChange }) => {
|
||||
dispatch({
|
||||
type: 'ON_CHANGE',
|
||||
name,
|
||||
value: value === 'file' ? 'application' : value,
|
||||
value: value === 'file' ? 'application' : value, // the value is different from param used by backend
|
||||
});
|
||||
};
|
||||
|
||||
@ -49,18 +49,9 @@ const FiltersCard = ({ onChange }) => {
|
||||
|
||||
const renderNamesOptions = () => {
|
||||
return Object.keys(filters).map(key => {
|
||||
if (key === 'mime') {
|
||||
// the type name is different from param used by backend
|
||||
return (
|
||||
<option key={key} value={key}>
|
||||
type
|
||||
</option>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<option key={key} value={key}>
|
||||
{key}
|
||||
{key === 'mime' ? 'type' : key}
|
||||
</option>
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user