mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:59:17 +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(() => {
|
||||
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;
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue