diff --git a/src/router/MainRouter.tsx b/src/router/MainRouter.tsx index 0ef7121..d000b96 100644 --- a/src/router/MainRouter.tsx +++ b/src/router/MainRouter.tsx @@ -14,7 +14,7 @@ const MainRouter = () => { const location = useLocation() const hiddenSideBarRoutes = [Paths.editor] const shouldRenderSideBar = !hiddenSideBarRoutes.includes(location.pathname) - const routeHasLocalSidebar = location.pathname === Paths.editor + const routeHasLocalSidebar = location.pathname.includes('editor') const hasSidebarSpace = shouldRenderSideBar || routeHasLocalSidebar const headerSidebarSize = routeHasLocalSidebar ? 'wide' : 'default'