Skip to content

Commit

Permalink
[Bugfix] Stub for 'Error: The result of this StaticQuery could not be…
Browse files Browse the repository at this point in the history
… fetched' (gatsbyjs/gatsby#24902)
  • Loading branch information
LyulyaevMaxim committed Aug 10, 2020
1 parent f808988 commit 688fe25
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/modules/seo/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Helmet
Expand Down

0 comments on commit 688fe25

Please sign in to comment.