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]) {