[bugfix]: shared only if owner exists

This commit is contained in:
Kendall Garner 2024-04-01 22:31:59 -07:00
parent ab17ba8add
commit ae167e63fd
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -172,7 +172,7 @@ export const SidebarPlaylistList = ({ data }: SidebarPlaylistListProps) => {
const shared: Playlist[] = []; const shared: Playlist[] = [];
for (const playlist of data.items) { for (const playlist of data.items) {
if (playlist.owner !== username) { if (playlist.owner && playlist.owner !== username) {
shared.push(playlist); shared.push(playlist);
} else { } else {
owned.push(playlist); owned.push(playlist);