From 8646319be7b03d2e9ece426ae8a8229f89bece45 Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Tue, 21 May 2024 17:14:57 -0400 Subject: [PATCH] fix env group dashboard --- .../env-groups/ExpandedEnvGroupDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;