fix songselect when no songs
This commit is contained in:
@@ -304,7 +304,7 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.songSelect = document.getElementById("song-select")
|
this.songSelect = document.getElementById("song-select")
|
||||||
var cat = this.songs[this.selectedSong].originalCategory || this.songs.find(song => song.action === "random").category
|
var cat = this.songs[this.selectedSong].originalCategory
|
||||||
this.drawBackground(cat)
|
this.drawBackground(cat)
|
||||||
|
|
||||||
this.previewId = 0
|
this.previewId = 0
|
||||||
@@ -407,7 +407,7 @@ class SongSelect{
|
|||||||
if(cat){
|
if(cat){
|
||||||
this.drawBackground(cat)
|
this.drawBackground(cat)
|
||||||
}else{
|
}else{
|
||||||
this.drawBackground(this.songs.find(song => song.action === "random").category)
|
this.drawBackground(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user