fix(title): fix a crash in title route

This commit is contained in:
zyachel 2023-07-09 19:14:59 +05:30
parent b07cb713d8
commit 21a1c83d95

View file

@ -192,7 +192,7 @@ const cleanTitle = (rawData: RawTitle) => {
startText: misc.connections.edges[0].node.category.text, startText: misc.connections.edges[0].node.category.text,
title: { title: {
id: misc.connections.edges[0].node.associatedTitle.id, 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, text: misc.connections.edges[0].node.associatedTitle.titleText.text,
}, },
}, },