diff --git a/src/create/CreateGuesser.tsx b/src/create/CreateGuesser.tsx index 7d17fbef..ffb3284e 100644 --- a/src/create/CreateGuesser.tsx +++ b/src/create/CreateGuesser.tsx @@ -73,6 +73,7 @@ export const IntrospectedCreateGuesser = ({ mutationOptions, transform, redirectTo, + children: [] }); const displayOverrideCode = useDisplayOverrideCode(); diff --git a/src/edit/EditGuesser.tsx b/src/edit/EditGuesser.tsx index cfa5bb81..9151154f 100644 --- a/src/edit/EditGuesser.tsx +++ b/src/edit/EditGuesser.tsx @@ -78,6 +78,7 @@ export const IntrospectedEditGuesser = ({ mutationOptions, transform, redirectTo, + children: [] }); useMercureSubscription(resource, id); diff --git a/src/hydra/fetchHydra.ts b/src/hydra/fetchHydra.ts index 80036057..282f5d1a 100644 --- a/src/hydra/fetchHydra.ts +++ b/src/hydra/fetchHydra.ts @@ -72,7 +72,7 @@ function fetchHydra( Promise.reject( new HttpError( ( - json[0][ + json[0]?.[ 'http://www.w3.org/ns/hydra/core#description' ] as JsonLdObj[] )?.[0]?.['@value'],