Skip to content

Commit 7e94e96

Browse files
committed
优化迁移
1 parent 5009494 commit 7e94e96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/utils/migrate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ interface OldUserListInfo {
3131
const filterMusicList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
3232
const ids: Set<string> = new Set()
3333
return list.filter(s => {
34-
if (!s.id || ids.has(s.id) || !s.name || s.singer == null) return false
34+
if (!s.id || ids.has(s.id) || !s.name) return false
35+
if (s.singer == null) s.singer = ''
3536
ids.add(s.id)
3637
return true
3738
})

0 commit comments

Comments
 (0)