diff --git a/packages/midi-bricks/src/reducers/slider-list.js b/packages/midi-bricks/src/reducers/slider-list.js index 23370ee55..797f47427 100644 --- a/packages/midi-bricks/src/reducers/slider-list.js +++ b/packages/midi-bricks/src/reducers/slider-list.js @@ -938,7 +938,7 @@ function toggleNotesInState(list, i) { const res = { ...item, isNoteOn: !item.isNoteOn, - val: item.isNoteOn ? item.onVal : item.offVal + val: !item.isNoteOn ? item.onVal : item.offVal } console.log('togglenotesinsstat', res.isNoteOn) return res