diff --git a/docs/data/material/components/app-bar/DashboardLayoutBasic.js b/docs/data/material/components/app-bar/DashboardLayoutBasic.js index 5e999fa08b0322..2c8f565c766594 100644 --- a/docs/data/material/components/app-bar/DashboardLayoutBasic.js +++ b/docs/data/material/components/app-bar/DashboardLayoutBasic.js @@ -97,7 +97,7 @@ export default function DashboardLayoutBasic(props) { const router = useDemoRouter('/dashboard'); // Remove this const when copying and pasting into your project. - const demoWindow = window !== undefined ? window() : undefined; + const demoWindow = window ? window() : undefined; return (