From 2c17f75f4fd6960bb418be3cc1a65480975bd6df Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sat, 15 Feb 2025 00:55:07 +0800 Subject: [PATCH] fix: Correct migration version configuration --- src/renderer/src/store/index.ts | 2 +- src/renderer/src/store/migrate.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/renderer/src/store/index.ts b/src/renderer/src/store/index.ts index fa11da90..60e083f8 100644 --- a/src/renderer/src/store/index.ts +++ b/src/renderer/src/store/index.ts @@ -30,7 +30,7 @@ const persistedReducer = persistReducer( { key: 'cherry-studio', storage, - version: 67, + version: 68, blacklist: ['runtime'], migrate }, diff --git a/src/renderer/src/store/migrate.ts b/src/renderer/src/store/migrate.ts index 70099a99..a3523685 100644 --- a/src/renderer/src/store/migrate.ts +++ b/src/renderer/src/store/migrate.ts @@ -968,15 +968,6 @@ const migrateConfig = { state.minapps.enabled.push(xiaoyi) } } - return state - }, - '68': (state: RootState) => { - if (state.minapps) { - const notebooklm = DEFAULT_MIN_APPS.find((app) => app.id === 'notebooklm') - if (notebooklm) { - state.minapps.enabled.push(notebooklm) - } - } state.llm.providers.push( { @@ -1035,6 +1026,15 @@ const migrateConfig = { keepAliveTime: 5 } + return state + }, + '68': (state: RootState) => { + if (state.minapps) { + const notebooklm = DEFAULT_MIN_APPS.find((app) => app.id === 'notebooklm') + if (notebooklm) { + state.minapps.enabled.push(notebooklm) + } + } return state } }