We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780706c commit eafe01dCopy full SHA for eafe01d
src/components/common/PeripheralsDialog.vue
@@ -368,8 +368,7 @@ export default class ManualProbeDialog extends Mixins(StateMixin) {
368
type: 'can',
369
count: this.canbusUuids
370
? Object.values(this.canbusUuids)
371
- .filter(value => Array.isArray(value))
372
- .reduce((a, b) => a + (b ? b.length : 0), 0)
+ .reduce((a, b) => a + b.length, 0)
373
: undefined
374
})
375
}
@@ -415,9 +414,9 @@ export default class ManualProbeDialog extends Mixins(StateMixin) {
415
414
break
416
417
case 'can':
418
- this.canbusInterfaces.forEach((canbusInterface) => {
+ for (const canbusInterface of this.canbusInterfaces) {
419
SocketActions.machinePeripheralsCanbus(canbusInterface)
420
- })
+ }
421
422
423
0 commit comments