Skip to content

Commit 07665ee

Browse files
committed
Resolved build failures-III
1 parent 4cc5849 commit 07665ee

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

headapps/Sugcon2024/src/pages/[[...path]].tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
RenderingType,
77
SitecoreContext,
88
ComponentPropsContext,
9-
EditingComponentPlaceholder,
109
StaticPath,
1110
} from '@sitecore-jss/sitecore-jss-nextjs';
1211
import { handleEditorFastRefresh } from '@sitecore-jss/sitecore-jss-nextjs/utils';
@@ -32,8 +31,6 @@ const SitecorePage = ({
3231
}
3332

3433
const isEditing = layoutData.sitecore.context.pageEditing;
35-
const isComponentRendering =
36-
layoutData.sitecore.context.renderingType === RenderingType.Component;
3734

3835
return (
3936
<ComponentPropsContext value={componentProps}>
@@ -45,11 +42,7 @@ const SitecorePage = ({
4542
Sitecore Pages supports component rendering to avoid refreshing the entire page during component editing.
4643
If you are using Experience Editor only, this logic can be removed, Layout can be left.
4744
*/}
48-
{isComponentRendering ? (
49-
<EditingComponentPlaceholder rendering={layoutData.sitecore.route} />
50-
) : (
51-
<Layout layoutData={layoutData} headLinks={headLinks} />
52-
)}
45+
<Layout layoutData={layoutData} headLinks={headLinks} />
5346
</SitecoreContext>
5447
</ComponentPropsContext>
5548
);

0 commit comments

Comments
 (0)