放置离开时产生报错

This commit is contained in:
2023-10-21 19:17:53 +08:00
parent d668b7236d
commit b81cedc023
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const clientList = new ClientList({
return 此用户音乐.includes(item.id) return 此用户音乐.includes(item.id)
}).forEach(item => { }).forEach(item => {
const client = clientList.clientlist.find(client => { const client = clientList.clientlist.find(client => {
return client.musicList.find(x => x.id === item.id) return client?.musicList?.find(x => x.id === item.id)
}) })
if (!client) musicList.remove(item) if (!client) musicList.remove(item)
}) })