From 955b48cbd27247fb89d96d16d5f8a9131168ecb3 Mon Sep 17 00:00:00 2001 From: Lael Birch Date: Mon, 24 May 2021 15:01:00 -0400 Subject: [PATCH] fix: page does not fail if course has no skills (#267) --- src/components/course/CourseHeader.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/course/CourseHeader.jsx b/src/components/course/CourseHeader.jsx index 19b46af59c..28e256a650 100644 --- a/src/components/course/CourseHeader.jsx +++ b/src/components/course/CourseHeader.jsx @@ -106,7 +106,7 @@ export default function CourseHeader() { dangerouslySetInnerHTML={{ __html: course.shortDescription }} /> )} - {course.skillNames.length > 0 && } + {course.skillNames?.length > 0 && } {catalog.containsContentItems ? ( <>