Skip to content

Commit

Permalink
fix: sampler state not persisting between restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Jan 4, 2025
1 parent 4cb1b50 commit 4075285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constants/SamplerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export namespace SamplersManager {
storage: createJSONStorage(() => mmkvStorage),
version: 1,
partialize: (state) => ({
samplerConfig: state.configList,
currentPresetIndex: state.currentConfigIndex,
configList: state.configList,
currentConfigIndex: state.currentConfigIndex,
}),
migrate: async (persistedState: any, version) => {
//no migrations yet
Expand Down

0 comments on commit 4075285

Please sign in to comment.