Merge pull request #459 from Hexastack/fix/display-text-area-options-content-fields
Some checks failed
Build and Push Docker API Image / build-and-push (push) Has been cancelled
Build and Push Docker Base Image / build-and-push (push) Has been cancelled
Build and Push Docker NLU Image / build-and-push (push) Has been cancelled
Build and Push Docker UI Image / build-and-push (push) Has been cancelled

fix: display contentType text-area fields in list block
This commit is contained in:
Med Marrouchi 2024-12-17 08:55:34 +01:00 committed by GitHub
commit 84f25ecfb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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