From ec5be0b46f79c9664d1b4cc797fb68e2778f05ba Mon Sep 17 00:00:00 2001 From: cdrani Date: Sun, 12 May 2024 14:59:23 -0600 Subject: [PATCH] fix: ensure song has id on tracklist track init --- src/models/tracklist/tracklist-icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/tracklist/tracklist-icon.js b/src/models/tracklist/tracklist-icon.js index a88dc09c..f20c2a6b 100644 --- a/src/models/tracklist/tracklist-icon.js +++ b/src/models/tracklist/tracklist-icon.js @@ -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)