From 12737c834e84b2b4fb0ea709aba936e76d2b2da0 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 11 Apr 2024 02:54:43 +0400 Subject: [PATCH] fix: fix graphql schema to match hub (#255) --- src/helpers/snapshot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/snapshot.ts b/src/helpers/snapshot.ts index c7c1a0b..f28bba1 100644 --- a/src/helpers/snapshot.ts +++ b/src/helpers/snapshot.ts @@ -63,7 +63,7 @@ const client = new ApolloClient({ }); const PROPOSAL_QUERY = gql` - query Proposal($id: String) { + query Proposal($id: String!) { proposal(id: $id) { id state @@ -117,7 +117,7 @@ const VOTE_QUERY = gql` `; const SPACE_QUERY = gql` - query Space($id: String) { + query Space($id: String!) { space(id: $id) { id network