mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
fix(migrate): correct filter condition for assistants' template status
- Updated the filter condition in migrateConfig to check for undefined isTemplate, ensuring proper assignment of template status for assistants.
This commit is contained in:
parent
8d23c810fe
commit
99b23e1d5d
@ -1674,7 +1674,7 @@ const migrateConfig = {
|
||||
}
|
||||
if (state.assistants && state.assistants.assistants.length > 0) {
|
||||
state.assistants.assistants
|
||||
.filter((assistant) => assistant.isTemplate !== undefined)
|
||||
.filter((assistant) => assistant.isTemplate === undefined)
|
||||
.forEach((assistant) => {
|
||||
assistant.isTemplate = false
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user