akerr501 / akerr501/CS361-Ethical-Eating-Project

Ingredients array is not validated before going to check ingredients page

オープン
#39 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
0
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

On the build/edit recipe page, there is no validation to ensure that the array is not empty, or more specifically, that there is not any ingredient input that has no selection. To replicate this, click on the build recipe page on the navbar and immediately try to check ingredients without selecting an ingredient first. This will try to render a page of all the ingredients data, but there is no data to render so an error is instead thrown. A good solution would be to validate each ingredient input to ensure none of them are on "Select Ingredient", another possible solution would just to make sure that the array has at least one ingredient and just ignore the empty inputs as they will be forgotten after clicking the "Make swaps" button on the next page.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。