diff --git a/backend/back/src/services/dto/area.dto.ts b/backend/back/src/services/dto/area.dto.ts index d32a0b02..ec1d3501 100644 --- a/backend/back/src/services/dto/area.dto.ts +++ b/backend/back/src/services/dto/area.dto.ts @@ -2,7 +2,7 @@ import { ApiProperty } from "@nestjs/swagger"; import { IsArray, IsBoolean, IsEnum, IsString } from "class-validator"; import { Type } from "class-transformer"; -export const PARAMETERS_FORM_FLOW_FIELD_TYPES = ["short-text", "long-text", "integer", "text-array"] as const; +export const PARAMETERS_FORM_FLOW_FIELD_TYPES = ["email", "short-text", "long-text", "integer", "text-array"] as const; export class ParametersFormFlowFieldDto { @ApiProperty({ diff --git a/frontend/web/layouts/editor/EditorAreParameter.tsx b/frontend/web/layouts/editor/EditorAreParameter.tsx index f06389e1..6d3db1e5 100644 --- a/frontend/web/layouts/editor/EditorAreParameter.tsx +++ b/frontend/web/layouts/editor/EditorAreParameter.tsx @@ -16,7 +16,7 @@ const EditorAreaParameterInput = ({ parameter, onValueChange }: EditorAreaParame /> ); } - if (["short-text", "long-text", "text-array"].includes(parameter.type)) { + if (["email", "short-text", "long-text", "text-array"].includes(parameter.type)) { return (