This commit is contained in:
Joel Varty 2021-06-23 10:25:05 -04:00
parent 00922a8c7d
commit 6821b0e00b

View File

@ -125,7 +125,9 @@ const Layout: FC<Props> = (props) => {
}
{!isPreviewLoading &&
<>
<PreviewBar isDevelopmentMode={agilityProps.isDevelopmentMode} isPreview={agilityProps.isPreview}/>
{ agilityProps &&
<PreviewBar isDevelopmentMode={agilityProps.isDevelopmentMode} isPreview={agilityProps.isPreview}/>
}
<Navbar links={navBarlinks} agilityProps={agilityProps} />
<main className="fit">{children}</main>
<Footer pages={pageProps.pages} agilityProps={agilityProps} />