From 00a44f7cd312a3781df8e32f40495935460c81ce Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 14 Jul 2018 21:51:26 +1000 Subject: [PATCH] Workaround for bug in Helmet https://github.com/nfl/react-helmet/issues/286 --- src/templates/person.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/person.js b/src/templates/person.js index 20555f8..d561a94 100644 --- a/src/templates/person.js +++ b/src/templates/person.js @@ -3,15 +3,15 @@ import Helmet from 'react-helmet' export default class PersonalAboutTemplate extends React.Component { render(){ - console.log("PersonalAboutTemplate props", this.props) //Note that if 2 people have the exact same name this will fail const currentPerson = this.props.data.allPeopleJson.edges[0].node; console.log("current person", currentPerson); + const title_text = `About ${currentPerson.name}`; return (
- About {currentPerson.name} + {title_text}

About {currentPerson.name}