mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:09:16 +02:00
Fixed attribute error
This commit is contained in:
parent
cd9cd4d01c
commit
2aee8d791e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue