Closed medhatelmasry closed 4 years ago
As part of assignment 2, Peter Kim implemented filtering of candidates. This is a dropdown list that displays races.
We need to get a list of races from the backend rather than hard-coding them on the front end.
Filter by vice-president causes an error.
Pull request 19 on Mohammad's fork (https://github.com/msalamat/plan-your-vote-cda/pull/19) created to fix and grab option values dynamically. The reason why "vice-president" option threw an error during the demo was that this was actually not a valid option within the Candidate component's race state. (As the seed data was genericized)
THe only item that is added to data coming from backend regarding races is "All". This issue is resolved.
Filter candidates by races should be a dropdown list