Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const location_elements = props.avlReducer.master_structure?.regions.map(x => {
- return x.districts.filter(y => {
- return (props.avlReducer.region == null || props.avlReducer.region == x.name) && (props.avlReducer.district == null || props.avlReducer.district == y.name)
- })
- }).map(z => z.map(y => y.locations?.map(x => (
- <option
- key={`location_${x.name}`}
- >
- {x.name}
- </option>
- ))));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement