From 6ce6fdd8aa4731b69439b294374f66e7e78d2b61 Mon Sep 17 00:00:00 2001 From: Byurhan Beyzat Date: Wed, 8 Jan 2020 13:49:41 +0200 Subject: [PATCH] Cleaning console.logs --- gatsby-node.js | 7 +------ src/components/Topics.js | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 9b20b903..0bb0cc8d 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -38,7 +38,6 @@ function sourceNodes({ actions, createNodeId, createContentDigest }) { actions.createNode({ ...tag, ...nodeMeta }); }); - console.log(countries()); // Add Countries to GraphQL API countries().forEach(country => { const nodeMeta = { @@ -56,9 +55,7 @@ function sourceNodes({ actions, createNodeId, createContentDigest }) { actions.createNode({ ...country, ...nodeMeta }); }); - console.log(computers()); - - // Add Phones to GraphQL API + // Add Computers to GraphQL API computers().forEach(computer => { const nodeMeta = { id: createNodeId(`computer-${computer.name}`), @@ -74,8 +71,6 @@ function sourceNodes({ actions, createNodeId, createContentDigest }) { actions.createNode({ ...computer, ...nodeMeta }); }); - console.log(phones()); - // Add Phones to GraphQL API phones().forEach(phone => { const nodeMeta = { diff --git a/src/components/Topics.js b/src/components/Topics.js index 7dddac0f..a36c4f79 100644 --- a/src/components/Topics.js +++ b/src/components/Topics.js @@ -10,7 +10,7 @@ export default function Topics() { currentTag, setCurrentTag, } = useContext(FilterContext); - console.log(countries); + return (
{tags.map(tag => (