mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use correct group url in multi-org experiment (#13986)
* fix: use correct group url in multi-org experiment When not using the experiment, default to the "default" org. Assuming groups are all in the primary org --------- Co-authored-by: McKayla Washburn <mckayla@hey.com>
This commit is contained in:
co-authored by
McKayla Washburn
parent
3a614f1602
commit
a61c09e4dc
@@ -54,13 +54,12 @@ import { isEveryoneGroup } from "utils/groups";
|
||||
import { pageTitle } from "utils/page";
|
||||
|
||||
export const GroupPage: FC = () => {
|
||||
const { groupName, organization } = useParams() as {
|
||||
organization: string;
|
||||
const { groupName } = useParams() as {
|
||||
groupName: string;
|
||||
};
|
||||
const queryClient = useQueryClient();
|
||||
const navigate = useNavigate();
|
||||
const groupQuery = useQuery(group(organization, groupName));
|
||||
const groupQuery = useQuery(group("default", groupName));
|
||||
const groupData = groupQuery.data;
|
||||
const { data: permissions } = useQuery(
|
||||
groupData !== undefined
|
||||
|
||||
Reference in New Issue
Block a user