修复无效的歌曲信息导致我的列表数据迁移失败的问题(#1095)
This commit is contained in:
@@ -31,7 +31,7 @@ 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)) return false
|
||||
if (!s.id || ids.has(s.id) || !s.name || s.singer == null) return false
|
||||
ids.add(s.id)
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user