mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
fix: bugs
This commit is contained in:
parent
ad0c585371
commit
41a30a25c0
11 changed files with 315 additions and 33 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue