This commit is contained in:
Angelos Chalaris
2019-08-24 12:57:16 +03:00
parent 5b4ad36c8e
commit 5a20779ef7

View File

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