diff --git a/dashboard/src/legacy/main/home/cluster-dashboard/env-groups/ExpandedEnvGroupDashboard.tsx b/dashboard/src/legacy/main/home/cluster-dashboard/env-groups/ExpandedEnvGroupDashboard.tsx index 34693c6e24..1983b73d0d 100644 --- a/dashboard/src/legacy/main/home/cluster-dashboard/env-groups/ExpandedEnvGroupDashboard.tsx +++ b/dashboard/src/legacy/main/home/cluster-dashboard/env-groups/ExpandedEnvGroupDashboard.tsx @@ -20,13 +20,13 @@ type PropsType = RouteComponentProps & }; const EnvGroupDashboard = (props: PropsType) => { + const params = useParams<{ name: string }>(); + const { currentProject } = useContext(Context); const namespace = currentProject?.simplified_view_enabled && currentProject?.capi_provisioner_enabled ? "porter-env-group" : getQueryParam(props, "namespace"); - const params = useParams<{ name: string }>(); - const { currentProject } = useContext(Context); const [expandedEnvGroup, setExpandedEnvGroup] = useState(); const isTabActive = () => { return !document.hidden;