mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
[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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue