From dbe7c6806fe202f2dc9024ef776169564f52eafa Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 6 Dec 2024 21:26:29 +0100 Subject: [PATCH] fix(issueProvider): migration leading to double entries for providers --- src/app/core/persistence/cross-model-migrations.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/persistence/cross-model-migrations.ts b/src/app/core/persistence/cross-model-migrations.ts index e7f8990f38..77b562eb41 100644 --- a/src/app/core/persistence/cross-model-migrations.ts +++ b/src/app/core/persistence/cross-model-migrations.ts @@ -45,9 +45,9 @@ export const crossModelMigrations = (data: AppDataComplete): AppDataComplete => data.project.ids.find((id) => data.project.entities[id]?.issueIntegrationCfgs) ) { newData = migrateIssueProvidersFromProjects(newData); - } - if (data.globalConfig?.calendarIntegration?.calendarProviders?.length) { - newData = migrateIssueProvidersFromCalendars(newData); + if (data.globalConfig?.calendarIntegration?.calendarProviders?.length) { + newData = migrateIssueProvidersFromCalendars(newData); + } } if (!data.note[MODEL_VERSION_KEY]) {