Skip to content

Commit

Permalink
Fix bug with playlists and update static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tobocop2 committed Dec 4, 2023
1 parent c5047d8 commit 9caa364
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,18 @@ export function PlaylistsSelection(props) {
let ret = [];
let i = 0;
while (i < playlists.length) {
const playlist = playlists[i];
const mediaList = playlist.media_list;
const isChecked = mediaList ? mediaList.indexOf(mediaId) !== -1 : false;

ret.push(
<div key={'playlist_' + playlists[i].playlist_id}>
<div key={'playlist_' + playlist.playlist_id}>
<PlaylistsSingleSelection
renderDate={date}
title={playlists[i].title}
privacy={playlists[i].status}
isChecked={-1 < playlists[i].media_list.indexOf(mediaId)}
playlistId={playlists[i].playlist_id}
title={playlist.title}
privacy={playlist.status}
isChecked={isChecked}
playlistId={playlist.playlist_id}
/>
</div>
);
Expand Down

0 comments on commit 9caa364

Please sign in to comment.