mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 09:44:32 +01:00
Fix bug with playlists and update static assets
This commit is contained in:
parent
c5047d8df8
commit
9caa364da3
@ -98,14 +98,18 @@ export function PlaylistsSelection(props) {
|
|||||||
let ret = [];
|
let ret = [];
|
||||||
let i = 0;
|
let i = 0;
|
||||||
while (i < playlists.length) {
|
while (i < playlists.length) {
|
||||||
|
const playlist = playlists[i];
|
||||||
|
const mediaList = playlist.media_list;
|
||||||
|
const isChecked = mediaList ? mediaList.indexOf(mediaId) !== -1 : false;
|
||||||
|
|
||||||
ret.push(
|
ret.push(
|
||||||
<div key={'playlist_' + playlists[i].playlist_id}>
|
<div key={'playlist_' + playlist.playlist_id}>
|
||||||
<PlaylistsSingleSelection
|
<PlaylistsSingleSelection
|
||||||
renderDate={date}
|
renderDate={date}
|
||||||
title={playlists[i].title}
|
title={playlist.title}
|
||||||
privacy={playlists[i].status}
|
privacy={playlist.status}
|
||||||
isChecked={-1 < playlists[i].media_list.indexOf(mediaId)}
|
isChecked={isChecked}
|
||||||
playlistId={playlists[i].playlist_id}
|
playlistId={playlist.playlist_id}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user