diff --git a/app/root.tsx b/app/root.tsx index 0feec5f..a4e0769 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -21,7 +21,6 @@ import { Scripts, ScrollRestoration, isRouteErrorResponse, - useNavigation, useRouteError, } from '@remix-run/react'; import apolloClient from './utils/apolloClient'; @@ -107,6 +106,7 @@ gql` eventsConnection(first: 1, type: Kulturspektakel) { edges { node { + id ...Header } } diff --git a/app/types/graphql.ts b/app/types/graphql.ts index 4a6891f..6873f99 100644 --- a/app/types/graphql.ts +++ b/app/types/graphql.ts @@ -1232,7 +1232,7 @@ export type RootQuery = { __typename?: 'QueryEventsConnection'; edges: Array<{ __typename?: 'QueryEventsConnectionEdge'; - node: {__typename?: 'Event'; start: Date; end: Date}; + node: {__typename?: 'Event'; id: string; start: Date; end: Date}; }>; }; }; @@ -2923,6 +2923,7 @@ export const RootDocument = gql` eventsConnection(first: 1, type: Kulturspektakel) { edges { node { + id ...Header } }