mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:19:24 +02:00
Fixed issue with undefined el
This commit is contained in:
parent
e34a90314f
commit
4f7052f589
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
self.bindEvents()
|
self.bindEvents()
|
||||||
if (self.tracks.length > 0) {
|
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;
|
document.getElementById('queue').scrollTop = topPos-10;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue