From 3ed308a2be78c6bd49d5d19daef2df7ec3bdce46 Mon Sep 17 00:00:00 2001 From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:03:43 +0530 Subject: [PATCH] PFM-5971 added filter for current tenant --- .../modules/hrms/src/components/pageComponents/jurisdiction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js index 5a406bce8..805bc0f00 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js @@ -73,7 +73,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => { }, []); useEffect(() => { - let cities = userData?.user[0]?.roles?.map((role) => role.tenantId)?.filter((value, index, array) => array.indexOf(value) === index); + let cities = [Digit.ULBService.getCurrentTenantId()] selectboundary( data?.MdmsRes?.tenant?.tenants