Verified Commit 4f7052f5 authored by Agate's avatar Agate 💬

Fixed issue with undefined el

parent e34a9031
......@@ -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;
}
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment