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} />