mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-13 08:31:12 +08:00
Fix store migration: Remove old field
Fix error: Unexpected key "api" found in previous state received by the reducer.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user