fix null course goal object bug (#365)

This commit is contained in:
Carla Duarte
2021-02-18 12:17:32 -05:00
committed by GitHub
parent d017c3194e
commit 49bfc65a03

View File

@@ -139,7 +139,7 @@ function OutlineTab({ intl }) {
tabFetch={fetchOutlineTab}
/>
)}
{!courseGoalToDisplay && goalOptions.length > 0 && (
{!courseGoalToDisplay && goalOptions && goalOptions.length > 0 && (
<CourseGoalCard
courseId={courseId}
goalOptions={goalOptions}
@@ -177,7 +177,7 @@ function OutlineTab({ intl }) {
<ProctoringInfoPanel
courseId={courseId}
/>
{courseGoalToDisplay && goalOptions.length > 0 && (
{courseGoalToDisplay && goalOptions && goalOptions.length > 0 && (
<UpdateGoalSelector
courseId={courseId}
goalOptions={goalOptions}