Skip to content

Commit 7f419f3

Browse files
Define ID in App.jsx
1 parent b6d6b59 commit 7f419f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Disabled USB autosuspend for the CM6206 USB audio device
1111
* Web App
1212
* Add warning for older versions of the webapp running on newer backends
13+
* Solve bug relating to single-zone groups
1314

1415
# 0.4.11
1516
* System

web/src/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ const updateGroupVols = (s) => {
245245
let calculated_vol = Math.min(...vols) * 0.5 + Math.max(...vols) * 0.5;
246246
g.vol_f = calculated_vol;
247247
} else if (g.zones.length == 1) {
248-
// ID is not defined, needs fixed
249-
g.vol_f = s.status.zones[id].vol_f;
248+
g.vol_f = s.status.zones[g.zones[0]].vol_f;
250249
}
251250
});
252251
};

0 commit comments

Comments
 (0)