Skip to content

Commit

Permalink
fix env group dashboard (#4677)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored May 21, 2024
1 parent 5f87569 commit 1bf7b65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>();
const isTabActive = () => {
return !document.hidden;
Expand Down

0 comments on commit 1bf7b65

Please sign in to comment.