mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
only show owned playlists on playlist sidebar
This commit is contained in:
@@ -181,7 +181,9 @@ 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) {
|
||||||
owned.push(playlist);
|
if (!playlist.owner || playlist.owner === server.username) {
|
||||||
|
owned.push(playlist);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { ...base, items: owned };
|
return { ...base, items: owned };
|
||||||
|
|||||||
Reference in New Issue
Block a user