only show owned playlists on playlist sidebar

This commit is contained in:
Kendall Garner 2025-06-25 08:19:22 -07:00
parent 2814b623e7
commit b989a66991
No known key found for this signature in database
GPG key ID: 9355F387FE765C94

View file

@ -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]);