mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
only show owned playlists on playlist sidebar
This commit is contained in:
parent
2814b623e7
commit
b989a66991
1 changed files with 3 additions and 1 deletions
|
|
@ -181,8 +181,10 @@ export const SidebarPlaylistList = () => {
|
||||||
const owned: Array<[boolean, () => void] | Playlist> = [];
|
const owned: Array<[boolean, () => void] | Playlist> = [];
|
||||||
|
|
||||||
for (const playlist of data.items) {
|
for (const playlist of data.items) {
|
||||||
|
if (!playlist.owner || playlist.owner === server.username) {
|
||||||
owned.push(playlist);
|
owned.push(playlist);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return { ...base, items: owned };
|
return { ...base, items: owned };
|
||||||
}, [data?.items, handlePlayPlaylist, server?.type, server?.username]);
|
}, [data?.items, handlePlayPlaylist, server?.type, server?.username]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue