You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the platforms query param key when filtering by platform should be parent_platforms, since parent_platforms are displayed in the dropdown menu.
E.g. If you filter by playstation, you'll get zero results, which is incorrect. "Grand Theft Auto V", for instance, has playstation in its list. I noticed some of the filtering results shown in video look off too.
I think the 'game-hub' repo has the same issue too.
Thanks for the awesome course!
Best,
Josh
The text was updated successfully, but these errors were encountered:
I wanted to leave a note on this since I came across this page when I noticed that the Playstation filter was returning no results after completing Part 24 - Filtering Games by Platform. This way if anyone else is searching, they will have more information on how to fix the problem.
The code you need to change is in useGames.ts. Toward the bottom of the file, in the "params" object, change the line "platforms: gameQuery.platform?.id" to "parent_platforms: gameQuery.platform?.id".
That appears to have fixed the problem! Happy coding!
Re: video 24 of the course project.
I believe the
platforms
query param key when filtering by platform should beparent_platforms
, since parent_platforms are displayed in the dropdown menu.E.g. If you filter by playstation, you'll get zero results, which is incorrect. "Grand Theft Auto V", for instance, has playstation in its list. I noticed some of the filtering results shown in video look off too.
I think the 'game-hub' repo has the same issue too.
Thanks for the awesome course!
Best,
Josh
The text was updated successfully, but these errors were encountered: