From 0c89e5b6b3d58f37048ba4fcc6232f873813a87e Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Fri, 8 Dec 2023 18:47:03 -0500 Subject: [PATCH] Fix rare type error caused by invalid tweet data --- src/providers/twitter/conversation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/twitter/conversation.ts b/src/providers/twitter/conversation.ts index 8f69f9e..0a5a111 100644 --- a/src/providers/twitter/conversation.ts +++ b/src/providers/twitter/conversation.ts @@ -179,7 +179,7 @@ const processResponse = (instructions: ThreadInstruction[]): GraphQLProcessBucke if (content.__typename === 'TimelineTimelineItem') { const itemContentType = content.itemContent?.__typename; if (itemContentType === 'TimelineTweet') { - const entryType = content.itemContent.tweet_results.result.__typename; + const entryType = content.itemContent.tweet_results.result?.__typename; if (entryType === 'Tweet') { bucket.statuses.push( content.itemContent.tweet_results.result as GraphQLTwitterStatus