fix: guard against courseGoals being undefined (#489)

No idea why this would happen honestly - it looks always defined
from the backend, and api.js doesn't transorm it. But we are seeing
JS errors related to it. So trying this as a first pass.

AA-848
This commit is contained in:
Michael Terry
2021-06-15 13:13:38 -04:00
committed by GitHub
parent e9c3a6bc5e
commit 99185a9b8a

View File

@@ -52,7 +52,7 @@ function OutlineTab({ intl }) {
courseGoals: { courseGoals: {
goalOptions, goalOptions,
selectedGoal, selectedGoal,
}, } = {},
datesBannerInfo, datesBannerInfo,
datesWidget: { datesWidget: {
courseDateBlocks, courseDateBlocks,