fix: dodgey poposals should not crash the governance page on exlporer (#721)

This commit is contained in:
Dexter Edwards 2022-07-07 14:44:23 +01:00 committed by GitHub
parent c7e65080b7
commit e11f345951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,9 @@ const PROPOSAL_QUERY = gql`
`;
const Governance = () => {
const { data } = useQuery<ProposalsQuery>(PROPOSAL_QUERY);
const { data } = useQuery<ProposalsQuery>(PROPOSAL_QUERY, {
errorPolicy: 'ignore',
});
if (!data) return null;
return (