Skip to content

Commit 37301f4

Browse files
committed
remove spaceAddress since it is not available in the new api
1 parent 3be9da2 commit 37301f4

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

packages/hypergraph-react/src/hooks/use-spaces.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const publicSpacesQueryDocument = gql`
99
query Spaces($accountAddress: String!) {
1010
spaces(filter: {members: {some: {address: {is: $accountAddress}}}}) {
1111
id
12-
spaceAddress
1312
page {
1413
name
1514
}
@@ -20,7 +19,6 @@ query Spaces($accountAddress: String!) {
2019
type PublicSpacesQueryResult = {
2120
spaces: {
2221
id: string;
23-
spaceAddress: string;
2422
page: {
2523
name: string;
2624
} | null;
@@ -47,7 +45,6 @@ export const useSpaces = (params: { mode: 'public' | 'private' }) => {
4745
? result.spaces.map((space) => ({
4846
id: space.id,
4947
name: space.page?.name,
50-
spaceAddress: space.spaceAddress,
5148
}))
5249
: [];
5350
},

packages/typesync-studio/src/Components/Schema/AppSchemaSpaceDialog.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
'use client';
22

3+
import { fieldContext, formContext, useFieldContext } from '@/Components/Form/form.ts';
4+
import { SubmitButton } from '@/Components/Form/SubmitButton.tsx';
5+
import { useAppSchemaSpace } from '@/Context/AppSchemaSpaceContext';
36
import { Id, type SpaceStorageEntry } from '@graphprotocol/hypergraph';
47
import { useHypergraphApp, useHypergraphAuth, useSpaces } from '@graphprotocol/hypergraph-react';
58
import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from '@headlessui/react';
69
import { WarningIcon, XIcon } from '@phosphor-icons/react';
710
import { createFormHook, useStore } from '@tanstack/react-form';
811
import { Schema } from 'effect';
912
import { useId } from 'react';
10-
import { fieldContext, formContext, useFieldContext } from '@/Components/Form/form.ts';
11-
import { SubmitButton } from '@/Components/Form/SubmitButton.tsx';
12-
import { useAppSchemaSpace } from '@/Context/AppSchemaSpaceContext';
1313
import { ErrorMessages } from '../Form/ErrorMessages';
1414
import { InlineCode } from '../InlineCode';
1515

@@ -154,7 +154,6 @@ type SchemaSpaceSelectProps = {
154154
| {
155155
id: string;
156156
name: string | undefined;
157-
spaceAddress: string;
158157
},
159158
): void;
160159
};

0 commit comments

Comments
 (0)