Skip to content

Commit

Permalink
Optional Chaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Dec 12, 2024
1 parent ae3579b commit 972db67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1375,8 +1375,8 @@ function validateAllDistrictTabsPresentOrNot(request: any, dataFromSheet: any, d
.filter((data: any) => getLocalizedName(`${request?.body?.ResourceDetails?.hierarchyType}_${data.type.toUpperCase()}`, localizationMap).toLocaleLowerCase() == differentTabsBasedOnLevel.toLowerCase())
.map((data: any) => getLocalizedName(data?.code, localizationMap)) || [];

districtsLocalised.forEach((tab: any) => {
if (!tabsOfDistrict.includes(tab)) {
districtsLocalised?.forEach((tab: any) => {
if (!tabsOfDistrict?.includes(tab)) {
MissingDistricts.push(tab);
}
});
Expand Down

0 comments on commit 972db67

Please sign in to comment.