diff --git a/.prettierignore b/.prettierignore index ecdad8a..9e766eb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,3 @@ dist -client/generated +client/src/generated server/migrations/ \ No newline at end of file diff --git a/client/src/components/modules/Sequencer.tsx b/client/src/components/modules/Sequencer.tsx index 4ca3e3f..a256bc1 100644 --- a/client/src/components/modules/Sequencer.tsx +++ b/client/src/components/modules/Sequencer.tsx @@ -47,17 +47,6 @@ type SequencerState = { notes: Note[] } -const initialState: SequencerState = { - editing: 0, - notes: Array(16) - .fill(null) - .map(() => ({ - name: 'A', - octave: 4, - gate: true, - })), -} - class Sequencer extends Component implements IModule { node: WorkletNode<'Sequencer'> @@ -70,7 +59,16 @@ class Sequencer extends Component implements IModule { }) if (!getModuleState(props.id)) { - setModuleState(props.id, initialState) + setModuleState(props.id, { + editing: 0, + notes: Array(16) + .fill(null) + .map(() => ({ + name: 'A', + octave: 4, + gate: true, + })), + }) } useEffect(() => {