From a1d3fb96c6bff05221c76d03e61b65da15e9bf47 Mon Sep 17 00:00:00 2001 From: Wisani Shilumani Date: Wed, 18 Jul 2018 12:16:40 +0200 Subject: [PATCH] Add count --- components/browseArchives/index.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/components/browseArchives/index.js b/components/browseArchives/index.js index 082e177..0e0f983 100644 --- a/components/browseArchives/index.js +++ b/components/browseArchives/index.js @@ -106,8 +106,7 @@ class BrowseArchives extends React.Component { } transformInterviews = (interviews) => { - // eslint-disable-next-line - const length = Object.keys(interviews).length; + const { length } = Object.keys(interviews); const betterInterviews = []; for (let i = 0; i < length; i++) { @@ -216,14 +215,6 @@ class BrowseArchives extends React.Component { const matchCount = matchingQuestionAnswerPositions .reduce((accumulator, match) => accumulator + match.count, 0); - // eslint-disable-next-line - console.log({ - found: true, - foundIndex, - positionInAnswer, - matchingQuestionAnswerPositions, - matchCount, - }); if (matchingQuestions.length > 0) { return {