fix: bugs

This commit is contained in:
qier222 2021-05-18 15:54:51 +08:00
parent ad0c585371
commit 41a30a25c0
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
11 changed files with 315 additions and 33 deletions

View file

@ -37,6 +37,7 @@ export function isTrackPlayable(track) {
}
export function mapTrackPlayableStatus(tracks, privileges = []) {
if (tracks?.length === undefined) return tracks;
return tracks.map(t => {
const privilege = privileges.find(item => item.id === t.id) || {};
if (t.privilege) {