Ensure existance of links key before rendering

This commit is contained in:
Kevin Kandlbinder 2021-02-14 19:40:05 +01:00
parent 37b12abb78
commit cfada612bb

View file

@ -63,7 +63,7 @@ const ProjectTemplate = ({ data }) => {
</article>
</section>
: null}
{project.links.github !== null || project.links.website !== null ?
{project.links !== null ?
<section className={styles.projectLinks}>
<div>
<h1>Links</h1>