Skip to content

Commit

Permalink
fix error with advanced search
Browse files Browse the repository at this point in the history
  • Loading branch information
nkan-aot2 committed Nov 20, 2024
1 parent fbac03b commit 42a8955
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ const AdvancedSearch = ({ userDetail }) => {
return <em>All</em>;
}

return selected.map(value => StateEnum.values().find(state => state.label === value).name).join(", ");
return selected.map(value => Object.values(StateEnum).find(state => state.label === value).name).join(", ");
}}
>
<MenuItem disabled value="" key="request-state-all">
Expand All @@ -685,7 +685,7 @@ const AdvancedSearch = ({ userDetail }) => {
>
<Checkbox
checked={
requestState.indexOf(key) > -1
requestState.indexOf(value.label) > -1
}
color="success"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ const AdvancedSearch = ({ userDetail }) => {
return <em>All</em>;
}

return selected.map(value => StateEnum.values().find(state => state.label === value).name).join(", ");
return selected.map(value => Object.values(StateEnum).find(state => state.label === value).name).join(", ");
}}
>
<MenuItem disabled value="" key="request-state-all">
Expand All @@ -637,7 +637,7 @@ const AdvancedSearch = ({ userDetail }) => {
>
<Checkbox
checked={
requestState.indexOf(key) > -1
requestState.indexOf(value.label) > -1
}
color="success"
/>
Expand Down

0 comments on commit 42a8955

Please sign in to comment.