Fix store migration: Remove old field

Fix error: Unexpected key "api" found in previous state received by the reducer.
This commit is contained in:
Bruno Lemos
2019-02-21 19:49:13 -03:00
parent aa2cc2bbb9
commit 584eed0fbd

View File

@@ -192,6 +192,7 @@ const migrations = {
draft.github = draft.github || {}
draft.github.api = draft.github.api || {}
draft.github.api.headers = githubAPIHeaders
delete (draft as any).api
const auth = (state.auth || {}) as {
appToken: string | null