diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index 7a1d7a28f..734240fe5 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -54,6 +54,10 @@ const HIDDEN_NAV_ROUTES: string[] = [ ROUTES.RULES_EDIT, ROUTES.RULES_DUPLICATE, ROUTES.RULES_IMPORT, + ROUTES.EDIT_DETECTOR_DETAILS, + ROUTES.EDIT_DETECTOR_RULES, + ROUTES.EDIT_FIELD_MAPPINGS, + ROUTES.EDIT_DETECTOR_ALERT_TRIGGERS, ]; interface MainProps extends RouteComponentProps { @@ -220,7 +224,7 @@ export default class Main extends Component { services && ( {/* Hide side navigation bar when on any HIDDEN_NAV_ROUTES pages. */} - {!HIDDEN_NAV_ROUTES.includes(pathname) && ( + {!HIDDEN_NAV_ROUTES.some((route) => pathname.match(route)) && (