mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 01:57:56 +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({
|
dispatch({
|
||||||
type: 'ON_CHANGE',
|
type: 'ON_CHANGE',
|
||||||
name,
|
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 = () => {
|
const renderNamesOptions = () => {
|
||||||
return Object.keys(filters).map(key => {
|
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 (
|
return (
|
||||||
<option key={key} value={key}>
|
<option key={key} value={key}>
|
||||||
{key}
|
{key === 'mime' ? 'type' : key}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user