Skip to content

Commit 7dfd93d

Browse files
authored
fix: upstreamInfo is not always provided (#2041) (#2042)
(cherry picked from commit 3fc0f27)
1 parent e34df7f commit 7dfd93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/course-unit/CourseUnit.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const CourseUnit = ({ courseId }) => {
140140
/>
141141
) : null}
142142
</TransitionReplace>
143-
{courseUnit.upstreamInfo.upstreamLink && (
143+
{courseUnit.upstreamInfo?.upstreamLink && (
144144
<AlertMessage
145145
title={intl.formatMessage(
146146
messages.alertLibraryUnitReadOnlyText,

0 commit comments

Comments
 (0)