Remove calling async thunk from Filter component using dispatch, but call it directly in slice (reformat)

graphql
Jason Zhu 2023-06-04 12:19:37 +10:00
parent 4cfc08448b
commit 6f04c341e3
1 changed files with 1 additions and 3 deletions

View File

@ -53,9 +53,7 @@ const Filters = () => {
<div>REGION</div>
<select
name="regionSelect"
onChange={e => {
dispatch(setSelectedRegion(e.target.value));
}}
onChange={e => dispatch(setSelectedRegion(e.target.value))}
value={selectedRegion}
>
{createRegionPokemonListOptionElements(regionOptions)}