From 688fe25240c36239182ddf24b4bd9cea72335299 Mon Sep 17 00:00:00 2001 From: Lyulyaev Maxim Date: Mon, 10 Aug 2020 03:05:54 +0300 Subject: [PATCH] [Bugfix] Stub for 'Error: The result of this StaticQuery could not be fetched' (https://github.com/gatsbyjs/gatsby/issues/24902) --- src/modules/seo/index.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/modules/seo/index.tsx b/src/modules/seo/index.tsx index bcb8168..ced47fa 100644 --- a/src/modules/seo/index.tsx +++ b/src/modules/seo/index.tsx @@ -1,23 +1,9 @@ import React from 'react' import { Helmet } from 'react-helmet' -import { useStaticQuery, graphql } from 'gatsby' +import { siteMetadata } from '../../constants' export function SEO({ locale, pageName }: any) { - const data = useStaticQuery( - graphql` - query { - site { - siteMetadata { - title - description - } - } - } - ` - ) - - const { siteMetadata } = data.site, - { title } = siteMetadata + const { title } = siteMetadata return (