Skip to content
Snippets Groups Projects
Commit 05337d8c authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Fix : get AreaID of desk when no area was selected

parent 9942e1ee
No related branches found
No related tags found
No related merge requests found
......@@ -133,10 +133,11 @@ class Vote {
async refreshBreadCrumb() {
let round = await this.RoundModel.getRound(this.RoundID);
let election = await this.ElectionModel.getElection(round.ElectionID);
let area = await this.AreaModel.getArea(this.AreaID);
let deskRound = await this.DeskRoundModel.getDeskRound(this.DeskRoundID);
this.desk = await this.DeskModel.getDesk(deskRound.DeskID);
let section = await this.SectionModel.getSection(this.desk.SectionID);
let area = await this.AreaModel.getArea(section.AreaID);
this.AreaID = area.ID;
let breadcrumb = document.getElementById("vote-breadcrumb");
let el = document.createElement("li");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment