From a17718a3398e3af8cbcab7cac5b7b6dd4fbd9e6f Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Sat, 28 Oct 2023 16:49:31 +0200 Subject: [PATCH] fix(back): Email params --- backend/back/src/services/dto/area.dto.ts | 2 +- frontend/web/layouts/editor/EditorAreParameter.tsx | 2 +- frontend/web/types/services.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 (