mirror of
https://github.com/strapi/strapi.git
synced 2025-09-19 21:38:05 +00:00
feedback fix
This commit is contained in:
parent
b81820c5e0
commit
75c632c655
@ -19,11 +19,7 @@ const options = [
|
||||
const AllowedTypesSelect = ({ intlLabel, name, onChange, value }) => {
|
||||
const { formatMessage } = useIntl();
|
||||
|
||||
if (name === 'allowedTypes' && value === '') {
|
||||
value = null;
|
||||
}
|
||||
/* eslint-disable indent */
|
||||
|
||||
const displayedValue =
|
||||
value === null || value.length === 0
|
||||
? formatMessage({ id: getTrad('form.attribute.media.allowed-types.none') })
|
||||
|
Loading…
x
Reference in New Issue
Block a user