mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Studentdetails] prevent crash on no startDate studyrights
This commit is contained in:
@@ -228,7 +228,7 @@ export const StudyrightsTable = ({
|
||||
<TableCell>
|
||||
<Stack alignItems="center" direction="row">
|
||||
{`${getTextIn(name)} (${reformatDate(startDate, DateFormat.DISPLAY_DATE)}–${reformatDate(endDate, DateFormat.DISPLAY_DATE)})`}
|
||||
{studyProgrammes != null && code in studyProgrammes && (
|
||||
{studyProgrammes != null && code in studyProgrammes && startDate && (
|
||||
<IconButton
|
||||
color="primary"
|
||||
component={Link}
|
||||
|
||||
Reference in New Issue
Block a user