parent
5009494e89
commit
7e94e96bcc
|
@ -31,7 +31,8 @@ interface OldUserListInfo {
|
|||
const filterMusicList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
|
||||
const ids: Set<string> = new Set()
|
||||
return list.filter(s => {
|
||||
if (!s.id || ids.has(s.id) || !s.name || s.singer == null) return false
|
||||
if (!s.id || ids.has(s.id) || !s.name) return false
|
||||
if (s.singer == null) s.singer = ''
|
||||
ids.add(s.id)
|
||||
return true
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue