feedback fix

This commit is contained in:
ronronscelestes 2021-10-19 16:06:27 +02:00
parent b81820c5e0
commit 75c632c655

View File

@ -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') })