refactor(Migration): Clean up MiniApp icon state removal in migration steps
- Remove redundant calls to removeMiniAppIconsFromState in migration steps - Consolidate MiniApp icon state removal in migration version 78 - Simplify migration configuration for state updates
This commit is contained in:
parent
92ed848d4e
commit
7d7f9eaa35
@ -835,8 +835,6 @@ const migrateConfig = {
|
||||
})
|
||||
}
|
||||
|
||||
removeMiniAppIconsFromState(state)
|
||||
|
||||
state.llm.providers.forEach((provider) => {
|
||||
if (provider.id === 'qwenlm') {
|
||||
provider.type = 'qwenlm'
|
||||
@ -876,7 +874,6 @@ const migrateConfig = {
|
||||
state.minapps.enabled.push(flowith)
|
||||
}
|
||||
}
|
||||
removeMiniAppIconsFromState(state)
|
||||
return state
|
||||
},
|
||||
'60': (state: RootState) => {
|
||||
@ -1244,6 +1241,7 @@ const migrateConfig = {
|
||||
'78': (state: RootState) => {
|
||||
state.llm.providers = moveProvider(state.llm.providers, 'ppio', 9)
|
||||
state.llm.providers = moveProvider(state.llm.providers, 'infini', 10)
|
||||
removeMiniAppIconsFromState(state)
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user