From 99b23e1d5d04b523ed6130b3c9b7896905d7bc5b Mon Sep 17 00:00:00 2001 From: suyao Date: Fri, 13 Jun 2025 22:24:50 +0800 Subject: [PATCH] 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. --- src/renderer/src/store/migrate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/store/migrate.ts b/src/renderer/src/store/migrate.ts index a9fdec8646..0f28bfc6c5 100644 --- a/src/renderer/src/store/migrate.ts +++ b/src/renderer/src/store/migrate.ts @@ -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 })