From ae167e63fd8087e8277764038d1afd8ed8ab8ec8 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:31:59 -0700 Subject: [PATCH] [bugfix]: shared only if owner exists --- .../features/sidebar/components/sidebar-playlist-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/features/sidebar/components/sidebar-playlist-list.tsx b/src/renderer/features/sidebar/components/sidebar-playlist-list.tsx index 2592e191..c5aa5f8b 100644 --- a/src/renderer/features/sidebar/components/sidebar-playlist-list.tsx +++ b/src/renderer/features/sidebar/components/sidebar-playlist-list.tsx @@ -172,7 +172,7 @@ export const SidebarPlaylistList = ({ data }: SidebarPlaylistListProps) => { const shared: Playlist[] = []; for (const playlist of data.items) { - if (playlist.owner !== username) { + if (playlist.owner && playlist.owner !== username) { shared.push(playlist); } else { owned.push(playlist);