From 49bfc65a03ebd5884e39a61797fca141eb1fa24e Mon Sep 17 00:00:00 2001 From: Carla Duarte Date: Thu, 18 Feb 2021 12:17:32 -0500 Subject: [PATCH] fix null course goal object bug (#365) --- src/course-home/outline-tab/OutlineTab.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/course-home/outline-tab/OutlineTab.jsx b/src/course-home/outline-tab/OutlineTab.jsx index 39179f7b..64416731 100644 --- a/src/course-home/outline-tab/OutlineTab.jsx +++ b/src/course-home/outline-tab/OutlineTab.jsx @@ -139,7 +139,7 @@ function OutlineTab({ intl }) { tabFetch={fetchOutlineTab} /> )} - {!courseGoalToDisplay && goalOptions.length > 0 && ( + {!courseGoalToDisplay && goalOptions && goalOptions.length > 0 && ( - {courseGoalToDisplay && goalOptions.length > 0 && ( + {courseGoalToDisplay && goalOptions && goalOptions.length > 0 && (