Skip to content

Commit

Permalink
fix null start end dates
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Mar 18, 2024
1 parent f31fdbf commit 5f15bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/affiliation/affiliation-update.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ export class AffiliationUpdateComponent implements OnInit {
roleTitle: assertion.roleTitle,
url: assertion.url,
startYear: assertion.startYear,
startMonth: parseInt(assertion.startMonth || '0'),
startMonth: parseInt(assertion.startMonth || '') || null,
startDay: assertion.startDay,
endYear: assertion.endYear,
endMonth: parseInt(assertion.endMonth || '0'),
endMonth: parseInt(assertion.endMonth || '') || null,
endDay: assertion.endDay,
orgName: assertion.orgName,
orgCountry: assertion.orgCountry,
Expand Down

0 comments on commit 5f15bf6

Please sign in to comment.