Skip to content

Commit

Permalink
Boom :)
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Oct 5, 2024
1 parent 5267d6c commit 3220545
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Midi/LaunchpadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const LaunchpadButton = ({
const lpType = useStore((state) => state.lpType)
const midiMapping = useStore((state) => state.midiMapping)
const midiEvent = useStore((state) => state.midiEvent)
const initMidi = useStore((state) => state.initMidi)
const setMidiMapping = useStore((state) => state.setMidiMapping)
const midiSceneInactiveColor = useStore((state) => state.midiColors.sceneInactiveColor)
const midiSceneActiveColor = useStore((state) => state.midiColors.sceneActiveColor)
Expand Down Expand Up @@ -165,7 +166,10 @@ const LaunchpadButton = ({
<Button onClick={() => handleClose()}>
Cancel
</Button>
<Button onClick={() => handleClose()}>
<Button onClick={() => {
initMidi()
handleClose()
}}>
Save
</Button>
</Stack>
Expand Down

0 comments on commit 3220545

Please sign in to comment.