From 10d97808e062c72a783720ae51701f9376d412c1 Mon Sep 17 00:00:00 2001 From: mukund-egov Date: Tue, 8 Oct 2024 11:12:21 +0530 Subject: [PATCH] Solved two Khanna Issue --- .../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 af19a5905..5f14662b8 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 @@ -87,7 +87,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => { }, []); const uniqueDivisions = divisions?.reduce((unique, obj) => { - const isDuplicate = unique.some((item) => item.id === obj.id && item.name === obj.name); + const isDuplicate = unique.some((item) => item.id === obj.id && item.code === obj.code); if (!isDuplicate) { unique.push(obj); }