Closed busla closed 7 years ago
Ok, seems that constituencies
is now constituency_names
.. and I was wrong, I´m mixing up presets
and adding data with the form. I haven´t touched the form and only trying to get the presets work.
The constituency
object is built when added in the UI but not when loading a preset, so no wonder why it´s not there.
Closing since rendering preset data in the UI is more of an uncompleted task.
Hey all,
Fixed a few issues to get the frontend working, see https://github.com/smari/voting/pull/10
The bakend doesn´t seem to return the
constituency
array required for the frontend to renderVotesTable
.constituencies
state property not being updated on GET: https://github.com/smari/voting/blob/master/voting/static/js/ui.js#L378constituency
array (which is empty since it´s not being updated on GET -> setState()): https://github.com/smari/voting/blob/master/voting/static/js/ui.js#L115The
setPreset
func asks for aconstituency
property which is not part of the response:https://github.com/smari/voting/blob/master/voting/static/js/ui.js#L584
Output from
/api/capabilities/