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:
suyao 2025-06-13 22:24:50 +08:00
parent 8d23c810fe
commit 99b23e1d5d
No known key found for this signature in database

View File

@ -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
})