Skip to content

Commit

Permalink
fix: get track from store before tracklist init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed May 15, 2024
1 parent 2b06897 commit 0924ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/tracklist/tracklist-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ export default class TrackListIcon {
if (this._seen.has(song.id)) return

this._seen.add(song.id)

const track = await this.getTrack(song.id) ?? {}
await this._store.getTrack({
id: song.id,
value: { ...song, isSkipped: false, isSnip: false, startTime: 0, endTime: song.endTime }
value: { ...song, isSkipped: false, isSnip: false, startTime: 0, endTime: song.endTime, ...track }
})
}

Expand Down

0 comments on commit 0924ad5

Please sign in to comment.