From b292370261f7010edaf7a686d38d6630aaf9aa3c Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sun, 15 Mar 2026 11:46:06 +0330 Subject: [PATCH] routeHasLocalSidebar --- src/router/MainRouter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'