Skip to content

Commit

Permalink
publish zero counter for player-info widgets in case of personal play…
Browse files Browse the repository at this point in the history
…list
  • Loading branch information
stCarolas committed Mar 4, 2024
1 parent a882cd7 commit 6fbbec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/playlist/Playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ class Playlist {

triggerListeners() {
publish(this.topic, {
count: this._index === null ? 0 : this._songs.length,
number: this._index === null ? 0 : this._index,
count: this._index === null || this._type === PLAYLIST_TYPE.PERSONAL ? 0 : this._songs.length,
number: this._index === null || this._type === PLAYLIST_TYPE.PERSONAL ? 0 : this._index,
});
this._listeners.forEach((listener) => {
listener.trigger(this);
Expand Down

0 comments on commit 6fbbec9

Please sign in to comment.