From 21a1c83d95b703fa08cdb96c206626f22d5366c9 Mon Sep 17 00:00:00 2001 From: zyachel Date: Sun, 9 Jul 2023 19:14:59 +0530 Subject: [PATCH] fix(title): fix a crash in title route --- src/utils/cleaners/title.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cleaners/title.ts b/src/utils/cleaners/title.ts index b20869e..5860147 100644 --- a/src/utils/cleaners/title.ts +++ b/src/utils/cleaners/title.ts @@ -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, }, },