Skip to content

Commit c0a5857

Browse files
authored
fix publishing (#287)
1 parent 36653b3 commit c0a5857

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

apps/events/src/components/playground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export const Playground = () => {
2222
const { getSmartSessionClient } = useHypergraphApp();
2323

2424
const deleteEntity = _useDeleteEntityPublic(Event, {
25-
space: '1c954768-7e14-4f0f-9396-0fe9dcd55fe8',
25+
space: 'a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862',
2626
});
2727

2828
const createEntity = _useCreateEntityPublic(Event, {
29-
space: '1c954768-7e14-4f0f-9396-0fe9dcd55fe8',
29+
space: 'a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862',
3030
});
3131

3232
console.log({ isLoading, isError, data });

apps/events/src/routes/playground.lazy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export const Route = createLazyFileRoute('/playground')({
1010

1111
function RouteComponent() {
1212
return (
13-
<HypergraphSpaceProvider space="d9814a82-8dab-4d02-86d2-9d413f7dc336">
13+
<HypergraphSpaceProvider space="a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862">
1414
<div className="flex flex-col gap-4 max-w-(--breakpoint-sm) mx-auto py-8">
1515
<h1 className="text-2xl font-bold">Playground</h1>
1616
<Playground />
17-
<CreatePropertiesAndTypesEvent space="d9814a82-8dab-4d02-86d2-9d413f7dc336" />
18-
<CreateEvents space="d9814a82-8dab-4d02-86d2-9d413f7dc336" />
17+
<CreatePropertiesAndTypesEvent space="a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862" />
18+
<CreateEvents space="a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862" />
1919
</div>
2020
</HypergraphSpaceProvider>
2121
);

packages/hypergraph-react/src/prepare-publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export const preparePublish = async <S extends Entity.AnyNoContext>({
9191
});
9292
}
9393
const { ops: createOps } = Graph.createEntity({
94+
id: entity.id,
9495
types: mappingEntry.typeIds,
9596
values,
9697
relations,

0 commit comments

Comments
 (0)