diff --git a/react/StoreWrapper.js b/react/StoreWrapper.js index ad0a0cd1..7453af9a 100644 --- a/react/StoreWrapper.js +++ b/react/StoreWrapper.js @@ -109,7 +109,7 @@ const StoreWrapper = ({ children, CustomContext }) => { const description = (metaTags && metaTags.description) || metaTagDescription const title = pageTitle || titleTag - const robots = metaTags?.robots || metaTagRobots + const robots = (metaTags || {}).robots || metaTagRobots const [queryMatch] = route.path.match(/\?.*/) || ['?']