We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1abcdf9 commit 4adf01aCopy full SHA for 4adf01a
packages/next/src/views/Root/getViewFromConfig.tsx
@@ -61,7 +61,7 @@ export const getViewFromConfig = ({
61
} => {
62
let ViewToRender: AdminViewComponent = null
63
let templateClassName: string
64
- let templateType: 'default' | 'minimal' = 'minimal'
+ let templateType: 'default' | 'minimal' | undefined
65
66
const initPageOptions: Parameters<typeof initPage>[0] = {
67
config,
packages/next/src/views/Root/index.tsx
@@ -86,6 +86,7 @@ export const RootPage = async ({
86
87
return (
88
<Fragment>
89
+ {!templateType && <Fragment>{RenderedView}</Fragment>}
90
{templateType === 'minimal' && (
91
<MinimalTemplate className={templateClassName}>{RenderedView}</MinimalTemplate>
92
)}
0 commit comments