mirror of
https://github.com/hexastack/hexabot
synced 2025-03-19 03:42:44 +00:00
fix: remove unecessary field type
This commit is contained in:
parent
a480149402
commit
ec76b30768
@ -65,7 +65,6 @@ const ContentFieldInput: React.FC<ContentFieldInput> = ({
|
||||
|
||||
switch (contentField.type) {
|
||||
case ContentFieldType.TEXT:
|
||||
case ContentFieldType.STRING:
|
||||
case ContentFieldType.TEXTAREA:
|
||||
case ContentFieldType.URL:
|
||||
return (
|
||||
|
@ -186,10 +186,8 @@ const ListMessageForm = () => {
|
||||
|
||||
return (
|
||||
<AutoCompleteSelect<ContentField, "label", false>
|
||||
options={(contentType?.fields || []).filter(({ type }) =>
|
||||
[ContentFieldType.STRING, ContentFieldType.TEXT].includes(
|
||||
type,
|
||||
),
|
||||
options={(contentType?.fields || []).filter(
|
||||
({ type }) => ContentFieldType.TEXT === type,
|
||||
)}
|
||||
idKey="name"
|
||||
labelKey="label"
|
||||
@ -216,10 +214,8 @@ const ListMessageForm = () => {
|
||||
|
||||
return (
|
||||
<AutoCompleteSelect<ContentField, "label", false>
|
||||
options={(contentType?.fields || []).filter(({ type }) =>
|
||||
[ContentFieldType.STRING, ContentFieldType.TEXT].includes(
|
||||
type,
|
||||
),
|
||||
options={(contentType?.fields || []).filter(
|
||||
({ type }) => ContentFieldType.TEXT === type,
|
||||
)}
|
||||
idKey="name"
|
||||
labelKey="label"
|
||||
|
@ -13,7 +13,6 @@ import { IBaseSchema, IFormat } from "./base.types";
|
||||
|
||||
export enum ContentFieldType {
|
||||
TEXT = "text",
|
||||
STRING = "string",
|
||||
URL = "url",
|
||||
TEXTAREA = "textarea",
|
||||
CHECKBOX = "checkbox",
|
||||
|
Loading…
Reference in New Issue
Block a user