Skip to content

Commit

Permalink
Revert forcing single-column mode on existing users
Browse files Browse the repository at this point in the history
Better wait for them to change it manually
  • Loading branch information
brunolemos committed Apr 1, 2019
1 parent 9ae0baf commit 82a4ae2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/components/src/redux/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,6 @@ const migrations = {
? 'single-column'
: 'multi-column'
}),
10: (state: RootState) =>
immer(state, draft => {
draft.config = draft.config || {}

draft.config.appViewMode = 'single-column'
}),
}

export function configureStore(key = 'root') {
Expand All @@ -261,7 +255,7 @@ export function configureStore(key = 'root') {
migrate: createMigrate(migrations as any, { debug: __DEV__ }),
storage,
throttle: 500,
version: 10,
version: 9,
}
const persistedReducer = persistReducer(persistConfig, rootReducer)

Expand Down

0 comments on commit 82a4ae2

Please sign in to comment.