Skip to content

Commit 26ae056

Browse files
committed
fix: fix build errors
1 parent 54ff17b commit 26ae056

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageExperimental.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const CreateWorkspacePageExperimental: FC = () => {
6666
const permissionsQuery = useQuery(
6767
templateQuery.data
6868
? checkAuthorization({
69-
checks: workspacePermissionChecks(templateQuery.data.organization_id),
69+
checks: workspacePermissionChecks(templateQuery.data.organization_id, me.id),
7070
})
7171
: { enabled: false },
7272
);

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ import {
2525
useMemo,
2626
useState,
2727
} from "react";
28-
import { Link } from "react-router-dom";
2928
import {
3029
getFormHelpers,
3130
nameValidator,
32-
onChangeTrimmed,
3331
} from "utils/formUtils";
3432
import {
3533
type AutofillBuildParameter,
@@ -258,7 +256,7 @@ export const CreateWorkspacePageViewExperimental: FC<
258256
<hgroup>
259257
<h2 className="text-xl font-semibold m-0">General</h2>
260258
<p className="text-sm text-content-secondary mt-0">
261-
{permissions.createWorkspaceForUser
259+
{permissions.createWorkspace
262260
? "Only admins can create workspaces for other users."
263261
: "The name of your new workspace."}
264262
</p>
@@ -305,7 +303,7 @@ export const CreateWorkspacePageViewExperimental: FC<
305303
</div>
306304
</div>
307305
</div>
308-
{permissions.createWorkspaceForUser && (
306+
{permissions.createWorkspace && (
309307
<div className="flex flex-col gap-2 flex-1">
310308
<Label className="text-sm" htmlFor={`${id}-workspace-name`}>
311309
Owner

0 commit comments

Comments
 (0)