PetterJohanssonTilia / zaptalk_frontend

React Frontend for the project Zap Talk
0 stars 1 forks source link

Picking genres in movielist makes it bug #2

Closed PetterJohanssonTilia closed 1 month ago

PetterJohanssonTilia commented 1 month ago

It looks like when you use the dropdown to pick a genre it activates that genre, but when you look for another it doesnt switch and activates both, in any case it causes errors

PetterJohanssonTilia commented 1 month ago

Its now been fixed with this commit https://github.com/PetterJohanssonTilia/zaptalk_frontend/commit/dfee4b8e9907678c6923d95aa7ea7e2c1614a0f4

We now reset the page to 1 and clear the existing movies before fetching new ones after applying a filter The fetchMovies function now correctly appends new movies to the existing list when resetMovies is false: