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 in Multiselect dropdown (#782)
Browse files Browse the repository at this point in the history
ISTE-8 Modification in Multiselect dropdown
  • Loading branch information
anilsingha-eGov authored Apr 26, 2024
2 parents f2ae513 + 175514d commit 2b54487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ const MultiSelectDropdown = ({
}, [selected?.length]);

function fnToSelectOptionThroughProvidedSelection(selected) {

return selected?.map((e) => (
{
[optionsKey]: `ACCESSCONTROL_ROLES_ROLES_${e.code}`,
[optionsKey]: e?.i18text? e.i18text : `ACCESSCONTROL_ROLES_ROLES_${e.code}`,
propsData: [null, e]
}
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const CreateEmployee = () => {
formData?.SelectEmployeeName?.employeeName &&
formData?.SelectEmployeePhoneNumber?.mobileNumber &&
formData?.Jurisdictions.length &&
formData?.Jurisdictions.filter((juris) => juris?.roles?.length).length > 0 &&
(formData?.Jurisdictions.filter((juris) => juris?.roles?.length).length > 0 || formData?.Jurisdictions.filter((juris) => juris?.divisionBoundary?.length).length > 0) &&
checkfield &&
phonecheck &&
checkMailNameNum(formData)
Expand Down

0 comments on commit 2b54487

Please sign in to comment.