diff --git a/front/src/EmbedFrame.vue b/front/src/EmbedFrame.vue index 90aa95e7d..9c677e56e 100644 --- a/front/src/EmbedFrame.vue +++ b/front/src/EmbedFrame.vue @@ -358,6 +358,9 @@ export default { self.bindEvents() if (self.tracks.length > 0) { let el = document.getElementById(`queue-item-${v}`); + if (!el) { + return + } var topPos = el.offsetTop; document.getElementById('queue').scrollTop = topPos-10; }