Skip to content

Commit

Permalink
Fix collaborators type definition of playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Jun 12, 2023
1 parent b78eede commit de04acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default function RecommendationPlaylistSettings({
</button>
</div>
<div>
{extension?.public ? "Public" : "Pr ivate"} playlist by&nbsp;
{playlist.creator} | For {extension?.collaborators[0]}
{extension?.public ? "Public" : "Private"} playlist by&nbsp;
{playlist.creator} | For {extension?.collaborators?.[0]}
</div>
<hr />
{playlist.annotation && (
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/src/utils/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ declare type JSPFPlaylistMetadata = {
};

declare type JSPFPlaylistExtension = {
collaborators: string[];
collaborators?: string[];
public: boolean;
created_for?: string;
copied_from?: string; // Full ListenBrainz playlist URI
Expand Down

0 comments on commit de04acb

Please sign in to comment.