From 922740a4cbd11f824a38ebd3bd16a3e1e4a6e6fd Mon Sep 17 00:00:00 2001 From: Nat Hillard <72811320+NatHillardUSDS@users.noreply.github.com> Date: Wed, 23 Jun 2021 12:47:31 -0400 Subject: [PATCH] Addresses #210, aside should not appear on map page (#211) --- client/src/components/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/layout.tsx b/client/src/components/layout.tsx index ed9c991b..b315e8b8 100644 --- a/client/src/components/layout.tsx +++ b/client/src/components/layout.tsx @@ -11,7 +11,7 @@ interface ILayoutProps { } const Layout = ({children, location}: ILayoutProps) => { - const isWidthFullPage = location.pathname.endsWith('/cejst'); + const isWidthFullPage = location.pathname.match(/cejst\/?/); const conditionalAside = isWidthFullPage ? <> : ; const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' : 'desktop:grid-col-9';