# Cannot read properties of undefined (reading 'map')

**URL:** <https://forum.codewithmosh.com/t/cannot-read-properties-of-undefined-reading-map/8990>\
**Category:** React\
**Created:** [December 4, 2021, 12:17pm UTC](https://forum.codewithmosh.com/t/cannot-read-properties-of-undefined-reading-map/8990 "2021-12-04T12:17:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daiana](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daiana](https://forum.codewithmosh.com/u/Daiana)\
**Post date:** [December 4, 2021, 12:17pm UTC](https://forum.codewithmosh.com/t/cannot-read-properties-of-undefined-reading-map/8990/1 "2021-12-04T12:17:02Z")

</div>

Hi,  
I am trying to raise the Sort Event, but I faced this error. Please help

 ![Снимок экрана 2021-12-04 180721](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/76ba99ba85f6bf4740f696de9cf9c53d51d24f05.png)  
 ![Снимок экрана 2021-12-04 180916](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/c3a20b0e7b7386b3afe12b458540b0a206612d87.png)  
 ![Снимок экрана 2021-12-04 181017](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/ef919091c369ab377ba30f6bdc6d2ef1eb52e19a.png)  
 ![Снимок экрана 2021-12-04 181050](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/3/3dbd9843539956b7931efd1c3c05b94dec3562b5.png)

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [December 8, 2021, 1:12am UTC](https://forum.codewithmosh.com/t/cannot-read-properties-of-undefined-reading-map/8990/2 "2021-12-08T01:12:45Z")

</div>

movies.jsx line 76:

`movis={movies}`

should be

`movies={movies}`
