From 2825a4bdb7f055326fc919111049d7f16f2dfe51 Mon Sep 17 00:00:00 2001 From: sc-illiakovalenko <55081915+sc-illiakovalenko@users.noreply.github.com> Date: Thu, 9 Jul 2020 16:31:40 +0300 Subject: [PATCH] [React sample] Application is broken when visit from /graphql to / in disconnected mode (#401) * [React sample] Application is broken when visit from /graphql to / in disconnected mode --- samples/react/src/components/GraphQL-Layout/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react/src/components/GraphQL-Layout/index.js b/samples/react/src/components/GraphQL-Layout/index.js index 76c68fcca9..3de9b07b76 100644 --- a/samples/react/src/components/GraphQL-Layout/index.js +++ b/samples/react/src/components/GraphQL-Layout/index.js @@ -2,7 +2,7 @@ import React from 'react'; import { Placeholder, withSitecoreContext } from '@sitecore-jss/sitecore-jss-react'; const GraphQLLayout = ({ sitecoreContext, rendering }) => { - const disconnectedMode = sitecoreContext.itemId === 'available-in-connected-mode'; + const disconnectedMode = sitecoreContext.route.layoutId === 'available-in-connected-mode'; return (