Skip to content

Commit

Permalink
fix env group dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen committed May 21, 2024
1 parent 5f87569 commit 8646319
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 8646319

Please sign in to comment.