From 566592f84607adf19a812f00c13a75e85d8468e7 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sun, 16 Feb 2020 01:04:15 +0100
Subject: [PATCH] Bug fix

---
 client/src/views/Hall.vue | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue
index ac2bd78f..b3f5b690 100644
--- a/client/src/views/Hall.vue
+++ b/client/src/views/Hall.vue
@@ -278,6 +278,10 @@ export default {
       let elt = !!e
         ? e.target
         : document.getElementById("btn" + letter.toUpperCase() + type);
+      // WARNING: this method is called at created in a setTimeout:
+      // => the page could have changed and element no longer defined.
+      if (!elt)
+        return;
       elt.classList.add("active");
       if (!!elt.previousElementSibling)
         elt.previousElementSibling.classList.remove("active");
-- 
2.44.0