Skip to content

Commit

Permalink
Merge pull request #280 from ymaheshwari1/#248
Browse files Browse the repository at this point in the history
Fixed: issue of duplicate filter options being visible in exclude segment(#248)
  • Loading branch information
ymaheshwari1 authored Nov 29, 2024
2 parents e555f6c + 1d811d5 commit 945fd05
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/store/modules/util/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ const actions: ActionTree<UtilState, RootState> = {

if(enums["ORD_FILTER_PRM_TYPE"]) {
Object.values(enums["ORD_FILTER_PRM_TYPE"]).reduce((filters: any, filter: any) => {
filters[filter.enumId + "_EXCLUDED"] = {
"enumId": filter.enumId + "_EXCLUDED",
"enumTypeId": filter.enumTypeId,
"enumCode": filter.enumCode + "_excluded",
"sequenceNum": 5,
"description": filter.description
if (!filter.enumId.includes("_EXCLUDED")) {
filters[filter.enumId + "_EXCLUDED"] = {
"enumId": filter.enumId + "_EXCLUDED",
"enumTypeId": filter.enumTypeId,
"enumCode": filter.enumCode + "_excluded",
"sequenceNum": 5,
"description": filter.description
}
}

return filters;
Expand Down

0 comments on commit 945fd05

Please sign in to comment.