File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1201,10 +1201,10 @@ function UpdateDeviceState(deviceId: string) {
1201
1201
// bus is unlinked
1202
1202
for ( let i = 0 ; i < deviceSources . length ; i ++ ) {
1203
1203
let deviceSource = deviceSources [ i ] ;
1204
- let currentSourceTally = currentSourceTallyData ?. [ deviceSource . sourceId ] || [ ] ;
1205
- //console.log('currentSourceTallyData', currentSourceTallyData);
1206
- //console.log('currentSourceTally', currentSourceTally);
1207
- if ( currentSourceTallyData ?. [ deviceSource . sourceId ] ?. includes ( bus . id ) ) { //if the current source tally data includes this bus
1204
+
1205
+ let data = SourceClients [ deviceSource . sourceId ] ?. tally ?. value || [ ]
1206
+
1207
+ if ( data ?. [ deviceSource . address ] ?. includes ( bus . id ) ) { //if the current source tally data includes this bus
1208
1208
//console.log('pushing', bus.label);
1209
1209
currentDeviceTallyData [ device . id ] . push ( bus . id ) ;
1210
1210
if ( ! previousBusses . includes ( bus . id ) ) {
You can’t perform that action at this time.
0 commit comments