Skip to content

Commit 49672d3

Browse files
committed
Fix approving/opening draft project
1 parent 1025515 commit 49672d3

File tree

1 file changed

+6
-6
lines changed
  • frontend/src/routes/(authenticated)/project/create

1 file changed

+6
-6
lines changed

frontend/src/routes/(authenticated)/project/create/+page.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { $OpResult, AskToJoinProjectMutation, CreateProjectInput, CreateProjectMutation, ProjectsByLangCodeAndOrgQuery, ProjectsByNameAndOrgQuery } from '$lib/gql/types';
2-
import { getClient, graphql } from '$lib/gql';
1+
import type {$OpResult, AskToJoinProjectMutation, CreateProjectInput, CreateProjectMutation, ProjectsByLangCodeAndOrgQuery, ProjectsByNameAndOrgQuery} from '$lib/gql/types';
2+
import {getClient, graphql} from '$lib/gql';
33

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

88
export async function load(event: PageLoadEvent) {
99
const userIsAdmin = (await event.parent()).user.isAdmin;
@@ -14,7 +14,7 @@ export async function load(event: PageLoadEvent) {
1414
const userResultsPromise = await client.query(graphql(`
1515
query loadRequestingUser($userId: UUID!) {
1616
users(
17-
where: {id: {eq: $userId}}) {
17+
where: {id: {eq: $userId}}, take: 1) {
1818
items {
1919
id
2020
name

0 commit comments

Comments
 (0)