mirror of
https://github.com/strapi/strapi.git
synced 2025-09-20 05:52:08 +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 AllowedTypesSelect = ({ intlLabel, name, onChange, value }) => {
|
||||||
const { formatMessage } = useIntl();
|
const { formatMessage } = useIntl();
|
||||||
|
|
||||||
if (name === 'allowedTypes' && value === '') {
|
|
||||||
value = null;
|
|
||||||
}
|
|
||||||
/* eslint-disable indent */
|
/* eslint-disable indent */
|
||||||
|
|
||||||
const displayedValue =
|
const displayedValue =
|
||||||
value === null || value.length === 0
|
value === null || value.length === 0
|
||||||
? formatMessage({ id: getTrad('form.attribute.media.allowed-types.none') })
|
? formatMessage({ id: getTrad('form.attribute.media.allowed-types.none') })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user