[bugfix]: shared only if owner exists
This commit is contained in:
parent
ab17ba8add
commit
ae167e63fd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue