From 89fa0fd4a951d11357991a859011da4d3d32c144 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 24 Oct 2021 16:56:07 +0100 Subject: [PATCH] Fix spotlight queries --- generated/graphql.ts | 2 +- src/components/ArchivesSidebar/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generated/graphql.ts b/generated/graphql.ts index 91ad7c5..05a4180 100644 --- a/generated/graphql.ts +++ b/generated/graphql.ts @@ -2973,7 +2973,7 @@ export type Unnamed_1_QueryVariables = {}; export type Unnamed_1_Query = ( { __typename?: 'Query' } - & { archives: ( + & { spotlights: ( { __typename?: 'FileConnection' } & { edges: Array<( { __typename?: 'FileEdge' } diff --git a/src/components/ArchivesSidebar/index.tsx b/src/components/ArchivesSidebar/index.tsx index f6a3424..ea65ab9 100644 --- a/src/components/ArchivesSidebar/index.tsx +++ b/src/components/ArchivesSidebar/index.tsx @@ -11,7 +11,7 @@ import * as SC from "./styles" const ALL_ARCHIVES = graphql` query { - archives: allFile( + spotlights: allFile( filter: { sourceInstanceName: { eq: "spotlights" } } ) { edges {