fix(songselect): category jump fallback to song_type when category missing
This commit is contained in:
@@ -2965,6 +2965,13 @@ class SongSelect{
|
|||||||
var categoryName = song.category
|
var categoryName = song.category
|
||||||
var originalCategory = song.category
|
var originalCategory = song.category
|
||||||
}
|
}
|
||||||
|
// Fallback: if category is missing, use song_type to enable category jump
|
||||||
|
if(!categoryName){
|
||||||
|
if(song.song_type){
|
||||||
|
categoryName = song.song_type
|
||||||
|
originalCategory = song.song_type
|
||||||
|
}
|
||||||
|
}
|
||||||
var addedSong = {
|
var addedSong = {
|
||||||
title: title,
|
title: title,
|
||||||
originalTitle: song.title,
|
originalTitle: song.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user