CoSigners and Authors not displaying correctly in admin
jotadepicas opened this issue · 0 comments
jotadepicas commented
When you edit a Stage or a Bill, coSigners and Authors (ie. Politicians in edit view) do not show correctly. It only displays the "tag" with the "x" symbol but no name.
Futhermore, when you save, coSigners/Authors do not seem to be saved to the database (ie. they show blank both in the show view of the admin and in the frontend).
Backend server logs this:
billtracker:root GET /api/politicians/[object%20Object] +6ms
Error: You must supply a valid Politician ID
at findById (/home/ubuntu/billtracker/lib/politician/politician-dao.js:28:17)
So it seems it has something to do with the Politician toString or id property or something.