Skip to content

Commit

Permalink
fix: ensure song has id on tracklist track init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed May 12, 2024
1 parent 2c1b417 commit ec5be0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/tracklist/tracklist-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class TrackListIcon {
async #initializeTrack(row) {
const song = trackSongInfo(row)

if (!song) return
if (!song?.id) return
if (this._seen.has(song.id)) return

this._seen.add(song.id)
Expand Down

0 comments on commit ec5be0b

Please sign in to comment.