Skip to content

Commit b2a8828

Browse files
committed
undo
1 parent 4bfab2e commit b2a8828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/pages/WorkspaceSettingsPage/WorkspaceSchedulePage/WorkspaceSchedulePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
formValuesToTTLRequest,
2828
} from "./formToRequest";
2929

30-
const permissionChecks = (workspace: TypesGen.Workspace) =>
30+
const permissionsToCheck = (workspace: TypesGen.Workspace) =>
3131
({
3232
updateWorkspace: {
3333
object: {
@@ -47,7 +47,7 @@ export const WorkspaceSchedulePage: FC = () => {
4747
const queryClient = useQueryClient();
4848
const workspace = useWorkspaceSettings();
4949
const { data: permissions, error: checkPermissionsError } = useQuery(
50-
checkAuthorization({ checks: permissionChecks(workspace) }),
50+
checkAuthorization({ checks: permissionsToCheck(workspace) }),
5151
);
5252
const { data: template, error: getTemplateError } = useQuery(
5353
templateByName(workspace.organization_id, workspace.template_name),

0 commit comments

Comments
 (0)