diff --git a/stats/src/components/track_row.tsx b/stats/src/components/track_row.tsx index f7fa569..0b62524 100644 --- a/stats/src/components/track_row.tsx +++ b/stats/src/components/track_row.tsx @@ -99,10 +99,8 @@ interface AlbumMenuProps extends Spicetify.ReactComponent.MenuProps { onRemoveCallback?: (uri: string) => void; } -function playAndQueue(uri: string, uris: string[]) { - // uris = uris.filter((u) => !u.includes("last")); - // uris = uris.concat(uris.splice(0, uris.indexOf(uri))); - // queue(uris); +function playAndQueue(uri: string) { + Spicetify.Player.playUri(uri); } const MenuWrapper = React.memo((props: AlbumMenuProps) => ); @@ -123,7 +121,7 @@ const TrackRow = (props: TrackRowProps) => { title={`${props.name} • ${props.artists.map((artist) => artist.name).join(", ")}`} className="main-trackList-trackListRow main-trackList-trackListRowGrid" role="presentation" - onClick={(event) => event.detail === 2 && playAndQueue(props.uri, props.uris)} + onClick={(event) => event.detail === 2 && playAndQueue(props.uri)} style={{ height: 56 }} >
@@ -141,7 +139,7 @@ const TrackRow = (props: TrackRowProps) => { className="main-trackList-rowImagePlayButton" aria-label={`Play ${props.name}`} tabIndex={-1} - onClick={() => playAndQueue(props.uri, props.uris)} + onClick={() => playAndQueue(props.uri)} >