diff --git a/src/course-home/courseware-search/CoursewareSearchResults.jsx b/src/course-home/courseware-search/CoursewareSearchResults.jsx index f25a96d731..4ddcda98f6 100644 --- a/src/course-home/courseware-search/CoursewareSearchResults.jsx +++ b/src/course-home/courseware-search/CoursewareSearchResults.jsx @@ -15,7 +15,7 @@ const iconTypeMapping = { const defaultIcon = Article; const CoursewareSearchResults = ({ intl, results }) => { - if (!results.length) { + if (!results?.length) { return (

{intl.formatMessage(messages.searchResultsNone)}