mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
fix songselect when no songs
This commit is contained in:
parent
d47ac381fd
commit
8c8f34f7a3
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user