From 5a20779ef7ba49bbadd786185eabcaf162561a2c Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 24 Aug 2019 12:57:16 +0300 Subject: [PATCH] Linting --- src/docs/templates/TagPage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/docs/templates/TagPage.js b/src/docs/templates/TagPage.js index 0947c52a9..479e3d2af 100644 --- a/src/docs/templates/TagPage.js +++ b/src/docs/templates/TagPage.js @@ -34,11 +34,10 @@ const TagRoute = props => { snippetData={{ title: node.frontmatter.title, html: node.html, - code: getCodeBlocks(node.rawMarkdownBody).code, tags: node.frontmatter.tags.split(',').map(v => v.trim()), id: node.fields.slug.slice(1), - code: props.data.snippetDataJson.data.find(v => v.title == node.frontmatter.title).attributes.codeBlocks, - supportPercentage: props.data.snippetDataJson.data.find(v => v.title == node.frontmatter.title).attributes.browserSupport.supportPercentage, + code: props.data.snippetDataJson.data.find(v => v.title === node.frontmatter.title).attributes.codeBlocks, + supportPercentage: props.data.snippetDataJson.data.find(v => v.title === node.frontmatter.title).attributes.browserSupport.supportPercentage, }} isDarkMode={props.isDarkMode} />