mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
only show owned playlists on playlist sidebar
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user