diff --git a/src/RealtimeServer/scriptureforge/services/sf-project-migrations.ts b/src/RealtimeServer/scriptureforge/services/sf-project-migrations.ts index c1070748d4..82f9e7d76f 100644 --- a/src/RealtimeServer/scriptureforge/services/sf-project-migrations.ts +++ b/src/RealtimeServer/scriptureforge/services/sf-project-migrations.ts @@ -416,7 +416,7 @@ class SFProjectMigration22 extends DocMigration { } } - await submitMigrationOp(SFProjectMigration21.VERSION, doc, ops); + await submitMigrationOp(SFProjectMigration22.VERSION, doc, ops); } } diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.spec.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.spec.ts index e6f2294f86..d489c7c847 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.spec.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.spec.ts @@ -159,7 +159,6 @@ describe('DraftGenerationStepsComponent', () => { when(mockProjectService.getProfile('alternateTrainingProject')).thenResolve( mockAlternateTrainingSourceProjectDoc ); - when(mockFeatureFlagService.allowFastTraining).thenReturn(createTestFeatureFlag(false)); when(mockTrainingDataService.queryTrainingDataAsync(anything())).thenResolve(instance(mockTrainingDataQuery)); when(mockTrainingDataQuery.docs).thenReturn([]); when(mockFeatureFlagService.allowFastTraining).thenReturn(createTestFeatureFlag(false)); diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.ts index 62d27dac15..aa2c315a9d 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.ts @@ -407,11 +407,10 @@ export class DraftGenerationStepsComponent extends SubscriptionDisposable implem this.activatedProject.projectDoc?.data?.translateConfig.draftConfig.lastSelectedTrainingScriptureRanges?.find( r => r.projectId === trainingSourceId )?.scriptureRange ?? ''; - const trainingScriptureRange = + const trainingScriptureRange: string | undefined = this.activatedProject.projectDoc?.data?.translateConfig.draftConfig.lastSelectedTrainingScriptureRange; if (previousTrainingRange === '' && trainingScriptureRange != null) { - previousTrainingRange = - this.activatedProject.projectDoc?.data?.translateConfig.draftConfig.lastSelectedTrainingScriptureRange ?? ''; + previousTrainingRange = trainingScriptureRange; } const previousBooks: Set = new Set(booksFromScriptureRange(previousTrainingRange));