Remove calling async thunk from Filter component using dispatch, but call it directly in slice (reformat)
parent
4cfc08448b
commit
6f04c341e3
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue