Skip to content

Commit

Permalink
fix: grouping - ungroup actual player while group another does not wo…
Browse files Browse the repository at this point in the history
…rk as expected

fixes #309
  • Loading branch information
punxaphil committed Mar 4, 2024
1 parent c9f8d29 commit 5d6a6d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sections/grouping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ export class Grouping extends LitElement {

let main = this.activePlayer.id;

if (unJoin.length > 0) {
await this.mediaControlService.unJoin(unJoin);
}
if (join.length > 0) {
await this.mediaControlService.join(main, join);
}
if (unJoin.length > 0) {
await this.mediaControlService.unJoin(unJoin);
}
await this.handlePredefinedGroupConfig(isSelected);
if (unJoin.includes(this.activePlayer.id)) {
main = isSelected[0].player.id;
Expand Down

0 comments on commit 5d6a6d3

Please sign in to comment.