SE-Fall24-RZA / Recipe_Recommender

Saveurs Sélection - Recipe Recommender is an application that suggests you recipes based on the ingredients which are currently available. One of the most tedious tasks while cooking is figuring out what to cook with the ingredients that you, have rather than how to cook it. Our software aims to ease this dilemma by providing recipes.
MIT License
0 stars 1 forks source link

Meal Plan page crashes if bookmarks is empty #26

Closed robbiethomas1101 closed 4 hours ago

robbiethomas1101 commented 15 hours ago

Attempting to access the meal plan page before adding bookmarks results in the frontend crashing.

This is likely caused by the meal plan page attempting to access a field of bookmarks, but the bookmarks object does not exist yet for that user

robbiethomas1101 commented 4 hours ago

The previously assumed cause of this bug was correct. A check was added to ensure the bookmarks field existed before attempting to access the field

robbiethomas1101 commented 4 hours ago

Resolved in pull request #35