# React B - 24 - filtering Platforms

**URL:** https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475
**Category:** React
**Created:** [July 13, 2023, 1:17pm UTC](https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475 "2023-07-13T13:17:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tomasN](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@tomasN](https://forum.codewithmosh.com/u/tomasN)
#### Post date: [July 13, 2023, 1:17pm UTC](https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475/1 "2023-07-13T13:17:42Z")

</div>

Hi. I encountered weird behaviour, when I try to filter games by dropdown menu on Game-hub. Every possible platform works except PLAYSTATION. It sends null request to server.  
Is here anyone with same issue? I can’t find the problem specifically to Playstation hard-coded anywhere because it’s rendered dynamically.  
Thanks for help

PC selected:

 ![Screenshot 2023-07-13 at 15.05.32](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/1/15338182122c5277daed8442c765f1b1df1b80b1.png)

PS selected:

 ![Screenshot 2023-07-13 at 15.05.46](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/757655b2fad2602008072becbc65bd702b6ee9a9.png)

Right now I’m at 39, building for Production but this still does not work. Even with Static Data.

---

<div class="post-metadata">

### Author: ![jax](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jax](https://forum.codewithmosh.com/u/jax)
#### Post date: [July 15, 2023, 7:30am UTC](https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475/2 "2023-07-15T07:30:24Z")

</div>

I also had this problem, could not fix it, can not remember the details, but I see I eventually just removed playstation from my list of platforms. Not ideal, I know.

---

<div class="post-metadata">

### Author: ![tomasN](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@tomasN](https://forum.codewithmosh.com/u/tomasN)
#### Post date: [July 15, 2023, 12:08pm UTC](https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475/3 "2023-07-15T12:08:47Z")

</div>

senior friend of mine took a glance at my code. So I have good news for you.

At the top of the video, Mosh wrote that he made a mistake and you should use parent\_platforms instead of platforms. We’re “asking” for wrong atribute here.

If your query asks for platforms, you get for playstation return as - “playstation2” and that’s the problem. If you ask for parent\_platforms, playstation returns only “playstation”.

So to fix the issue - find platform and change it for parent\_platforms: in - **useGames.ts** , **PlatformSelector** in App.tsx and finally - **GameHeading.tsx**

---

<div class="post-metadata">

### Author: ![jax](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jax](https://forum.codewithmosh.com/u/jax)
#### Post date: [July 15, 2023, 9:54pm UTC](https://forum.codewithmosh.com/t/react-b-24-filtering-platforms/21475/4 "2023-07-15T21:54:27Z")

</div>

Thanks so much 🙂 I did see the message flash up at the top of the video - but assumed the solution had been worked into the video
