Skip to content

Commit 1bf7b65

Browse files
author
Feroze Mohideen
authored
fix env group dashboard (#4677)
1 parent 5f87569 commit 1bf7b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/src/legacy/main/home/cluster-dashboard/env-groups/ExpandedEnvGroupDashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ type PropsType = RouteComponentProps &
2020
};
2121

2222
const EnvGroupDashboard = (props: PropsType) => {
23+
const params = useParams<{ name: string }>();
24+
const { currentProject } = useContext(Context);
2325
const namespace =
2426
currentProject?.simplified_view_enabled &&
2527
currentProject?.capi_provisioner_enabled
2628
? "porter-env-group"
2729
: getQueryParam(props, "namespace");
28-
const params = useParams<{ name: string }>();
29-
const { currentProject } = useContext(Context);
3030
const [expandedEnvGroup, setExpandedEnvGroup] = useState<any>();
3131
const isTabActive = () => {
3232
return !document.hidden;

0 commit comments

Comments
 (0)