diff --git a/fetchers/answersFetcher.js b/fetchers/answersFetcher.js index 7182c97..733a768 100644 --- a/fetchers/answersFetcher.js +++ b/fetchers/answersFetcher.js @@ -38,10 +38,7 @@ const answersFetcher = async (resourceStr, lang) => { rawData.question = matchedPart.question; // primary answer block - } else if ( - matchedPart.question?.answers?.edges && - matchedPart.question.answers.edges[0].node.answer.content - ) { + } else if (matchedPart.question?.answers?.edges?.[0].node.answer?.content) { rawData.answers.push(matchedPart.question.answers.edges[0].node.answer); // other answer blocks