Update frontend/src/components/visual-editor/form/ListMessageForm.tsx

This commit is contained in:
Med Marrouchi 2024-12-17 08:52:00 +01:00 committed by GitHub
parent 04cbf25cc9
commit 36b9a32655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,9 +186,7 @@ const ListMessageForm = () => {
return (
<AutoCompleteSelect<ContentField, "label", false>
options={(contentType?.fields || []).filter(
({ type }) =>
ContentFieldType.TEXT === type ||
ContentFieldType.TEXTAREA === type,
({ type }) => ContentFieldType.TEXT === type,
)}
idKey="name"
labelKey="label"