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

This commit is contained in:
Dexter Edwards
2022-07-07 13:44:23 +00:00
committed by GitHub
parent c7e65080b7
commit e11f345951
@@ -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 (