From 6418cd500226ca45f244c2636f78c679b50ffd9e Mon Sep 17 00:00:00 2001 From: Bhavya-egov Date: Wed, 19 Jun 2024 17:29:23 +0530 Subject: [PATCH] fixed error message issue --- .../modules/campaign-manager/src/components/UploadData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js b/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js index 60334a2c698..09cb1a0f9c0 100644 --- a/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js +++ b/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js @@ -319,7 +319,7 @@ const UploadData = ({ formData, onSelect, ...props }) => { } let formattedError = `${t("HCM_IN_COLUMN")} '${instancePath}' ${error.message}`; if (error.keyword === "enum" && error.params && error.params.allowedValues) { - formattedError += `${t("HCM_DATA_ALLOWED_VALUES_ARE")} ${error.params.allowedValues.join(", ")}`; + formattedError += `${t("HCM_DATA_ALLOWED_VALUES_ARE")} ${error.params.allowedValues.join("/ ")}`; } return `${t("HCM_DATA_AT_ROW")} ${index} ${formattedError}`; }) @@ -432,7 +432,7 @@ const UploadData = ({ formData, onSelect, ...props }) => { } let formattedError = `${t("HCM_IN_COLUMN")} '${instancePath}' ${error.message}`; if (error.keyword === "enum" && error.params && error.params.allowedValues) { - formattedError += `${t("HCM_DATA_ALLOWED_VALUES_ARE")} ${error.params.allowedValues.join(", ")}`; + formattedError += `${t("HCM_DATA_ALLOWED_VALUES_ARE")} ${error.params.allowedValues.join("/ ")}`; } return `${t("HCM_DATA_AT_ROW")} ${index} ${formattedError} at ${sheetName}`; })