From 4f7052f5891d658c018e6164f88c64c5303f5b12 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Mon, 29 Apr 2019 15:28:13 +0200
Subject: [PATCH] Fixed issue with undefined el

---
 front/src/EmbedFrame.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/front/src/EmbedFrame.vue b/front/src/EmbedFrame.vue
index 7dcc371e..90aa95e7 100644
--- a/front/src/EmbedFrame.vue
+++ b/front/src/EmbedFrame.vue
@@ -357,7 +357,8 @@ export default {
       this.$nextTick(() => {
         self.bindEvents()
         if (self.tracks.length > 0) {
-          var topPos = document.getElementById(`queue-item-${v}`).offsetTop;
+          let el = document.getElementById(`queue-item-${v}`);
+          var topPos = el.offsetTop;
           document.getElementById('queue').scrollTop = topPos-10;
         }
       })
-- 
GitLab