Skip to content

Commit

Permalink
fix(title): fix a crash in title route
Browse files Browse the repository at this point in the history
  • Loading branch information
zyachel committed Jul 9, 2023
1 parent b07cb71 commit 21a1c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cleaners/title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const cleanTitle = (rawData: RawTitle) => {
startText: misc.connections.edges[0].node.category.text,
title: {
id: misc.connections.edges[0].node.associatedTitle.id,
year: misc.connections.edges[0].node.associatedTitle.releaseYear.year,
year: misc.connections.edges[0].node.associatedTitle.releaseYear?.year ?? null,
text: misc.connections.edges[0].node.associatedTitle.titleText.text,
},
},
Expand Down

0 comments on commit 21a1c83

Please sign in to comment.