mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
[bugfix]: shared only if owner exists
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user