sassansh / Places

A M.E.R.N. full-stack application to help trusted groups find the best places to visit
https://places-cpsc455.herokuapp.com/
MIT License
1 stars 3 forks source link

🐛Fix PlaceView Crash + 👾 API support for get all user's Categories #107

Closed sassansh closed 3 years ago

sassansh commented 3 years ago

The GET /api/categories endpoint will now send the groups categories if you call dispatch(getCategories(currentGroupID)) otherwise if you just call dispatch(getCategories()) the backend will recognize that group_id isnt set, so it will use the user's token to figure out who you are and return all the categories for the groups you are in.

PlaceView is now fixed. UserProfile is working as well.

@johnnybcs Userprofile generates a lot of errors in the console. Check that out!