Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ah, yes
  • Loading branch information
aslilac committed Jul 26, 2024
commit 9ed77d4cb3d684d8062903c7633169db4d20e33b
7 changes: 1 addition & 6 deletions site/src/pages/UsersPage/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { isNonInitialPage } from "components/PaginationWidget/utils";
import { useAuthenticated } from "contexts/auth/RequireAuth";
import { usePaginatedQuery } from "hooks/usePaginatedQuery";
import { useDashboard } from "modules/dashboard/useDashboard";
import { useFeatureVisibility } from "modules/dashboard/useFeatureVisibility";
import { pageTitle } from "utils/page";
import { generateRandomString } from "utils/random";
import { ResetPasswordDialog } from "./ResetPasswordDialog";
Expand All @@ -43,10 +42,7 @@ const UsersPage: FC = () => {
const searchParamsResult = useSearchParams();
const { entitlements, experiments, organizationId } = useDashboard();
const [searchParams] = searchParamsResult;
const { multiple_organizations: organizationsEnabled } =
useFeatureVisibility();
const isMultiOrg =
organizationsEnabled && experiments.includes("multi-organization");
const isMultiOrg = experiments.includes("multi-organization");

const groupsByUserIdQuery = useQuery(groupsByUserId(organizationId));
const authMethodsQuery = useQuery(authMethods());
Expand Down Expand Up @@ -108,7 +104,6 @@ const UsersPage: FC = () => {
groupsByUserIdQuery.isLoading;

if (
organizationsEnabled &&
experiments.includes("multi-organization") &&
location.pathname !== "/deployment/users"
) {
Expand Down
Loading