Skip to content

Commit

Permalink
Fix approving/opening draft project
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Nov 27, 2024
1 parent 1025515 commit 49672d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/routes/(authenticated)/project/create/+page.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { $OpResult, AskToJoinProjectMutation, CreateProjectInput, CreateProjectMutation, ProjectsByLangCodeAndOrgQuery, ProjectsByNameAndOrgQuery } from '$lib/gql/types';
import { getClient, graphql } from '$lib/gql';
import type {$OpResult, AskToJoinProjectMutation, CreateProjectInput, CreateProjectMutation, ProjectsByLangCodeAndOrgQuery, ProjectsByNameAndOrgQuery} from '$lib/gql/types';
import {getClient, graphql} from '$lib/gql';

import type { PageLoadEvent } from './$types';
import { getSearchParam } from '$lib/util/query-params';
import { isGuid } from '$lib/util/guid';
import type {PageLoadEvent} from './$types';
import {getSearchParam} from '$lib/util/query-params';
import {isGuid} from '$lib/util/guid';

export async function load(event: PageLoadEvent) {
const userIsAdmin = (await event.parent()).user.isAdmin;
Expand All @@ -14,7 +14,7 @@ export async function load(event: PageLoadEvent) {
const userResultsPromise = await client.query(graphql(`
query loadRequestingUser($userId: UUID!) {
users(
where: {id: {eq: $userId}}) {
where: {id: {eq: $userId}}, take: 1) {
items {
id
name
Expand Down

0 comments on commit 49672d3

Please sign in to comment.