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 @@ -1361,10 +1361,10 @@ function UpdateDeviceState(deviceId: string) {
1361
1361
// bus is unlinked
1362
1362
for ( let i = 0 ; i < deviceSources . length ; i ++ ) {
1363
1363
let deviceSource = deviceSources [ i ]
1364
- let currentSourceTally = currentSourceTallyData ?. [ deviceSource . sourceId ] || [ ]
1365
- //console.log('currentSourceTallyData', currentSourceTallyData);
1366
- //console.log('currentSourceTally', currentSourceTally);
1367
- if ( currentSourceTallyData ?. [ deviceSource . sourceId ] ?. includes ( bus . id ) ) {
1364
+
1365
+ let data = SourceClients [ deviceSource . sourceId ] ?. tally ?. value || [ ]
1366
+
1367
+ if ( data ?. [ deviceSource . address ] ?. includes ( bus . id ) ) { //if the current source tally data includes this bus
1368
1368
//if the current source tally data includes this bus
1369
1369
//console.log('pushing', bus.label);
1370
1370
currentDeviceTallyData [ device . id ] . push ( bus . id )
You can’t perform that action at this time.
0 commit comments