From 7f10575b526757b751fc50fe2ae588dcea455d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Wed, 24 Dec 2025 14:28:31 -0300 Subject: [PATCH] fix: import summary text (#2772) Updates the text on the import summary shown on partial imports. --- src/library-authoring/import-course/messages.ts | 2 +- .../import-course/stepper/ImportStepperPage.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/library-authoring/import-course/messages.ts b/src/library-authoring/import-course/messages.ts index 8aec6d754..9462f514e 100644 --- a/src/library-authoring/import-course/messages.ts +++ b/src/library-authoring/import-course/messages.ts @@ -295,7 +295,7 @@ const messages = defineMessages({ id: 'library-authoring.import-course.import-details.import-partial.alert.title', defaultMessage: '

{percentage}% of Course {courseName} has been imported successfully.' + ' Imported Course content can be edited and remixed in your Library, and reused in Courses.

' - + '

Details of the import, including reasons some content was not abled to be imported are described below

', + + '

Details of the import, including reasons some content was not imported are described below

', description: 'Body of the import details page when the migration is in partial import.', }, importPartialReasonTableBlockName: { diff --git a/src/library-authoring/import-course/stepper/ImportStepperPage.tsx b/src/library-authoring/import-course/stepper/ImportStepperPage.tsx index e8e617acc..d7ecb1563 100644 --- a/src/library-authoring/import-course/stepper/ImportStepperPage.tsx +++ b/src/library-authoring/import-course/stepper/ImportStepperPage.tsx @@ -40,7 +40,9 @@ export const MigrationStatus = ({ for (const libraries of Object.values(migrationInfoData)) { // The map key in `migrationInfoData` is in camelCase. // In the processed map, we use the key in its original form. - result[libraries[0].sourceKey] = libraries.map(item => item.targetKey); + if (libraries.length !== 0) { + result[libraries[0].sourceKey] = libraries.map(item => item.targetKey); + } } } return result;