mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: display contentType text-area fields in list block
This commit is contained in:
parent
3b549b3e6e
commit
951ec19023
@ -172,6 +172,7 @@ const ListMessageForm = () => {
|
|||||||
<FormLabel component="h4" sx={{ marginBottom: "1rem" }}>
|
<FormLabel component="h4" sx={{ marginBottom: "1rem" }}>
|
||||||
{t("title.fields_map")}
|
{t("title.fields_map")}
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
{/* here! */}
|
||||||
<ContentItem>
|
<ContentItem>
|
||||||
<Controller
|
<Controller
|
||||||
name="options.content.fields.title"
|
name="options.content.fields.title"
|
||||||
@ -186,7 +187,9 @@ const ListMessageForm = () => {
|
|||||||
return (
|
return (
|
||||||
<AutoCompleteSelect<ContentField, "label", false>
|
<AutoCompleteSelect<ContentField, "label", false>
|
||||||
options={(contentType?.fields || []).filter(
|
options={(contentType?.fields || []).filter(
|
||||||
({ type }) => ContentFieldType.TEXT === type,
|
({ type }) =>
|
||||||
|
ContentFieldType.TEXT === type ||
|
||||||
|
ContentFieldType.TEXTAREA === type,
|
||||||
)}
|
)}
|
||||||
idKey="name"
|
idKey="name"
|
||||||
labelKey="label"
|
labelKey="label"
|
||||||
@ -214,7 +217,9 @@ const ListMessageForm = () => {
|
|||||||
return (
|
return (
|
||||||
<AutoCompleteSelect<ContentField, "label", false>
|
<AutoCompleteSelect<ContentField, "label", false>
|
||||||
options={(contentType?.fields || []).filter(
|
options={(contentType?.fields || []).filter(
|
||||||
({ type }) => ContentFieldType.TEXT === type,
|
({ type }) =>
|
||||||
|
ContentFieldType.TEXT === type ||
|
||||||
|
ContentFieldType.TEXTAREA === type,
|
||||||
)}
|
)}
|
||||||
idKey="name"
|
idKey="name"
|
||||||
labelKey="label"
|
labelKey="label"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user