diff --git a/app/utils/custom-fields.ts b/app/utils/custom-fields.ts index cc5daca83..19a152030 100644 --- a/app/utils/custom-fields.ts +++ b/app/utils/custom-fields.ts @@ -202,7 +202,8 @@ export const getDefinitionFromCsvHeader = ( let type = defArr.find((e) => e.toLowerCase().startsWith("type:"))?.substring(5) || "text"; //"text" - type = type.replace(/\s+/g, "").toUpperCase(); + + type = type.trim().replace(/\s+/g, "_").toUpperCase(); return { name, active: true,