Skip to content

Commit

Permalink
Added conditional around parseInt, should get rid of some NaNs
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba committed Jan 8, 2024
1 parent ad33c04 commit 56a091c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SynonymGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export default class SynonymGroup implements AsyncIterable<JustifiedSynonym> {
if (!t.treat) return;
const treatment: Treatment = {
url: t.treat.value,
date: parseInt(t.date?.value, 10),
date: t.date ? parseInt(t.date.value, 10) : undefined,
creators: t.creators.value,
materialCitations: getMaterialCitations(t.treat.value)
};
Expand Down

0 comments on commit 56a091c

Please sign in to comment.