Skip to content

Commit 4f7c929

Browse files
committed
fix(selector-device): pass the correct nodeIndex when drawing neurons
1 parent 96020f2 commit 4f7c929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/devices/selector.device.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ selectorDevice.drawNeurons = function (): void {
127127
} = networkState.getNeuronAndLayerIndexes (i);
128128
const shiftedIndex = (layerIndex - 1) + 1; // reset, then move to the right
129129
const note = this.grid[shiftedIndex][neuronIndex - 1];
130-
const { isEnabled } = networkState.getNeuron (neuronIndex);
130+
const { isEnabled } = networkState.getNeuron (i);
131131

132132
this.playNote ({
133133
note,

0 commit comments

Comments
 (0)