优化迁移

pull/1123/head v2.0.2
lyswhut 2023-01-02 17:57:01 +08:00
parent 5009494e89
commit 7e94e96bcc
1 changed files with 2 additions and 1 deletions

View File

@ -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
})