Skip to content

Commit

Permalink
Fix grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Feb 24, 2024
1 parent 1597615 commit 4da1d48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default function Group(props: GroupProps) {
let idx = newclients.findIndex(element => element.client === client);
newclients[idx].inGroup = inGroup;
setClients(newclients);
setUpdate(update + 1);
};

function handleClientDelete(client: Snapcast.Client) {
Expand All @@ -107,6 +108,7 @@ export default function Group(props: GroupProps) {
if (!newDeletedClients.includes(client))
newDeletedClients.push(client);
setDeletedClients(newDeletedClients);
setUpdate(update + 1);
}

function handleClientVolumeChange(client: Snapcast.Client) {
Expand All @@ -124,6 +126,7 @@ export default function Group(props: GroupProps) {
newDeletedClients.splice(newDeletedClients.indexOf(client), 1);

setDeletedClients(newDeletedClients);
setUpdate(update + 1);
};

function handleMuteClicked() {
Expand Down

0 comments on commit 4da1d48

Please sign in to comment.