Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
1,620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. const location_elements = props.avlReducer.master_structure?.regions.map(x => {
  2. return x.districts.filter(y => {
  3. return (props.avlReducer.region == null || props.avlReducer.region == x.name) && (props.avlReducer.district == null || props.avlReducer.district == y.name)
  4. })
  5. }).map(z => z.map(y => y.locations?.map(x => (
  6. <option
  7. key={`location_${x.name}`}
  8. >
  9. {x.name}
  10. </option>
  11. ))));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement