Skip to content

Commit 5b3f8a0

Browse files
committed
check if run exists before setting on dashboardcard
1 parent e8f5e74 commit 5b3f8a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/main/src/app-pages/DashboardPage/OrganizationContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ const OrgProgramDisplay: React.FC<{
153153
dashboardResource={course}
154154
courseNoun="Module"
155155
offerUpgrade={false}
156-
titleHref={course.run.coursewareUrl}
157-
buttonHref={course.run.coursewareUrl}
156+
titleHref={course.run?.coursewareUrl}
157+
buttonHref={course.run?.coursewareUrl}
158158
/>
159159
))}
160160
</PlainList>

0 commit comments

Comments
 (0)