From b51d4a8f15e7c19eb48aa3818c912024cc6bac5a Mon Sep 17 00:00:00 2001
From: Alexis Poyen <apoyen@mail.apoyen.fr>
Date: Mon, 8 Jun 2020 12:26:11 +0200
Subject: [PATCH] Fix : synchronize displaying before any further action

---
 web/components/management/election.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/components/management/election.js b/web/components/management/election.js
index 58c6f8b..4907425 100644
--- a/web/components/management/election.js
+++ b/web/components/management/election.js
@@ -330,7 +330,7 @@ class Election {
       document.getElementById("election-modal-ballot-type").value
     );
 
-    this.displayElections();
+    await this.displayElections();
     Common.toggleModal("election-modal", "election-modal-card");
     this.activateElection(election);
     this.parent.areaHandler.election = election;
-- 
GitLab