Skip to content

Commit

Permalink
fix: JS exception on initial render for some courses (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzawaleed01 authored Jan 29, 2025
1 parent cf26017 commit f62618a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app/data/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ export function transformCourseMetadataByAllocatedCourseRunAssignments({
courseRuns: courseMetadata.courseRuns.filter(
courseRun => allocatedCourseRunAssignmentKeys.includes(courseRun.key),
),
availableCourseRuns: courseMetadata.availableCourseRuns.filter(
availableCourseRuns: courseMetadata.availableCourseRuns?.filter(
courseRun => allocatedCourseRunAssignmentKeys.includes(courseRun.key),
),
};
Expand Down

0 comments on commit f62618a

Please sign in to comment.