Skip to content

Commit be0f7cf

Browse files
committed
fix: properly set uri's when playing from artist
1 parent bfaef43 commit be0f7cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/content/ContentView.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,8 @@ const ContentView = ({
944944
contextUri = `spotify:album:${contentId}`;
945945
success = await playTrack(track.uri, contextUri);
946946
} else if (contentType === "artist") {
947-
uris = tracks.filter((t) => t && t.uri).map((t) => t.uri);
948-
const startIndex = index || 0;
949-
uris = uris.slice(startIndex).concat(uris.slice(0, startIndex));
950-
success = await playTrack(track.uri, null, uris);
947+
contextUri = `spotify:artist:${contentId}`;
948+
success = await playTrack(track.uri, contextUri);
951949
} else if (contentType === "show") {
952950
contextUri = `spotify:show:${contentId}`;
953951
success = await playTrack(track.uri, contextUri);

0 commit comments

Comments
 (0)