Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ISTE-8 Modification for role dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy-eGov committed Apr 24, 2024
1 parent 5a30509 commit 4ce98e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => {
return roleCodesToFilter.includes(role.code);
})
.map((role) => {
return { code: role.code, name: role?.name ? role?.name : " ", labelKey: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
return { code: role.code, name: role?.name ? role?.name : " ", i18text: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
});
} else {
// Specify the role codes you want to filter
Expand All @@ -243,7 +243,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => {
return data?.MdmsRes?.["ws-services-masters"].WSServiceRoles?.filter((role) => {
return !roleCodesToFilter.includes(role.code);
})?.map((role) => {
return { code: role.code, name: role?.name ? role?.name : " ", labelKey: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
return { code: role.code, name: role?.name ? role?.name : " ", i18text: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
});
}
}
Expand Down Expand Up @@ -622,7 +622,7 @@ function Jurisdiction({
selected={jurisdiction?.roles}
options={getroledata(roleoption)}
onSelect={selectrole}
optionsKey="labelKey"
optionsKey="i18text"
showSelectAll={true}
t={t}
/>
Expand Down

0 comments on commit 4ce98e5

Please sign in to comment.