changing artist clears trackList

This commit is contained in:
iou1name 2020-10-05 10:52:51 -04:00
parent a0eec2baa4
commit 2ddf78f46f

View File

@ -64,6 +64,10 @@ function artist_albums_recv(data) {
while (albums_list.firstChild) {
albums_list.removeChild(albums_list.lastChild);
}
let track_list = document.querySelector('#trackList');
while (track_list.firstChild) {
track_list.removeChild(track_list.firstChild);
}
for (let album of data) {
let option = document.createElement('option');
option.value = album['album'];