Skip to content

Commit

Permalink
[React sample] Application is broken when visit from /graphql to / in…
Browse files Browse the repository at this point in the history
… disconnected mode (#401)

* [React sample] Application is broken when visit from /graphql to / in disconnected mode
  • Loading branch information
sc-illiakovalenko authored Jul 9, 2020
1 parent ba4811f commit 2825a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/react/src/components/GraphQL-Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div data-e2e-id="graphql-layout">
Expand Down

0 comments on commit 2825a4b

Please sign in to comment.