Skip to content

Commit 46e19d0

Browse files
committed
fix type
1 parent b885d3c commit 46e19d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/template-nextjs/Components/Space/PrivateSpace.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
useSpace,
1111
useSpaces,
1212
} from '@graphprotocol/hypergraph-react';
13+
import type { Entity } from '@graphprotocol/hypergraph';
1314
import { useState } from 'react';
1415

1516
import { Project } from '@/app/schema';
@@ -51,7 +52,7 @@ function PrivateSpace() {
5152
setProjectDescription('');
5253
};
5354

54-
const publishToPublicSpace = async (project: typeof Project) => {
55+
const publishToPublicSpace = async (project: Entity.Entity<typeof Project>) => {
5556
if (!selectedSpace) {
5657
alert('No space selected');
5758
return;

0 commit comments

Comments
 (0)