From d0e352682ea74cb7145d83d759e2a7db1127bf91 Mon Sep 17 00:00:00 2001 From: Deepa Date: Tue, 2 Apr 2024 06:10:31 +0000 Subject: [PATCH] Fixed TL submit button issue employee side --- .../modules/tl/src/pageComponents/TLOwnerDetailsEmployee.js | 4 ++-- .../modules/tl/src/pages/employee/NewApplication/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pageComponents/TLOwnerDetailsEmployee.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pageComponents/TLOwnerDetailsEmployee.js index e637045144e..5fbcbacc3f4 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pageComponents/TLOwnerDetailsEmployee.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pageComponents/TLOwnerDetailsEmployee.js @@ -346,7 +346,7 @@ const OwnerForm = (_props) => { control={control} name={"altContactNumber"} defaultValue={owner?.altContactNumber} - rules={{ /* required: t("REQUIRED_FIELD"), */ validate: { pattern: (val) => (/^$|^[0][1-9][0-9]{9}$|^[1-9][0-9]{9}$/.test(val) ? false : t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")) } }} + //rules={{ /* required: t("REQUIRED_FIELD"), */ validate: { pattern: (val) => (/^$|^[0][1-9][0-9]{9}$|^[1-9][0-9]{9}$/.test(val) ? false : t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")) } }} render={(props)=>( { - if (formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length > 1) clearErrors("mulipleOwnerError"); + if ((formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length > 1) || (formData?.ownershipCategory?.code!="INDIVIDUAL.MULTIPLEOWNERS")) clearErrors("mulipleOwnerError"); if (formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length == 1) setError("mulipleOwnerError", { type: "owner_missing", message: `TL_ERROR_MULTIPLE_OWNER` }); const data = owners.map((e) => { diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pages/employee/NewApplication/index.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pages/employee/NewApplication/index.js index fb60576531c..17d1a90e196 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pages/employee/NewApplication/index.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/src/pages/employee/NewApplication/index.js @@ -28,7 +28,7 @@ const NewApplication = () => { { filters: { propertyIds: propertyId }, tenantId: tenantId }, { filters: { propertyIds: propertyId }, tenantId: tenantId, enabled: propertyId ? true : false } ); - console.log("pd123", propertyDetails) + //console.log("pd123", propertyDetails) useEffect(() => { !propertyId && setPropertyId(sessionFormData?.cpt?.details?.propertyId);