Skip to content

Commit

Permalink
fix:some courses not loading (#591)
Browse files Browse the repository at this point in the history
due to undefined upgrade_deadlin_override some courses were not loading

DISCO-1777
  • Loading branch information
mubbsharanwar authored Oct 1, 2021
1 parent 0156e14 commit 3268597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditCoursePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class EditCoursePage extends React.Component {

const getUpgradeDeadlineOverride = (seats) => {
const nonAuditSeat = seats.filter(seat => seat.type !== AUDIT_TRACK.key)[0];
return nonAuditSeat.upgrade_deadline_override;
return nonAuditSeat ? nonAuditSeat.upgrade_deadline_override : null;
};

const buildSeats = (seats) => (
Expand Down

0 comments on commit 3268597

Please sign in to comment.