Skip to content

Commit

Permalink
fix: page does not fail if course has no skills (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lael Birch authored May 24, 2021
1 parent a24249b commit 955b48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/course/CourseHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function CourseHeader() {
dangerouslySetInnerHTML={{ __html: course.shortDescription }}
/>
)}
{course.skillNames.length > 0 && <CourseSkills />}
{course.skillNames?.length > 0 && <CourseSkills />}
{catalog.containsContentItems ? (
<>
<CourseRunSelector />
Expand Down

0 comments on commit 955b48c

Please sign in to comment.