fix(governance,trading): proposals not showing (#4222)

Co-authored-by: sam-keen <samuel.kleinmann@gmail.com>
This commit is contained in:
Matthew Russell 2023-07-05 06:09:13 -07:00 committed by GitHub
parent f6fc4df1c5
commit fc6ce9e99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 83 additions and 163 deletions

View File

@ -91,46 +91,46 @@ query Proposal($proposalId: ID!) {
} }
} }
} }
dataSourceSpecForTradingTermination { # dataSourceSpecForTradingTermination {
sourceType { # sourceType {
... on DataSourceDefinitionInternal { # ... on DataSourceDefinitionInternal {
sourceType { # sourceType {
... on DataSourceSpecConfigurationTime { # ... on DataSourceSpecConfigurationTime {
conditions { # conditions {
operator # operator
value # value
} # }
} # }
} # }
} # }
... on DataSourceDefinitionExternal { # ... on DataSourceDefinitionExternal {
sourceType { # sourceType {
... on DataSourceSpecConfiguration { # ... on DataSourceSpecConfiguration {
signers { # signers {
signer { # signer {
... on PubKey { # ... on PubKey {
key # key
} # }
... on ETHAddress { # ... on ETHAddress {
address # address
} # }
} # }
} # }
filters { # filters {
key { # key {
name # name
type # type
} # }
conditions { # conditions {
operator # operator
value # value
} # }
} # }
} # }
} # }
} # }
} # }
} # }
dataSourceSpecBinding { dataSourceSpecBinding {
settlementDataProperty settlementDataProperty
tradingTerminationProperty tradingTerminationProperty
@ -203,46 +203,46 @@ query Proposal($proposalId: ID!) {
} }
} }
} }
dataSourceSpecForTradingTermination { # dataSourceSpecForTradingTermination {
sourceType { # sourceType {
... on DataSourceDefinitionInternal { # ... on DataSourceDefinitionInternal {
sourceType { # sourceType {
... on DataSourceSpecConfigurationTime { # ... on DataSourceSpecConfigurationTime {
conditions { # conditions {
operator # operator
value # value
} # }
} # }
} # }
} # }
... on DataSourceDefinitionExternal { # ... on DataSourceDefinitionExternal {
sourceType { # sourceType {
... on DataSourceSpecConfiguration { # ... on DataSourceSpecConfiguration {
signers { # signers {
signer { # signer {
... on PubKey { # ... on PubKey {
key # key
} # }
... on ETHAddress { # ... on ETHAddress {
address # address
} # }
} # }
} # }
filters { # filters {
key { # key {
name # name
type # type
} # }
conditions { # conditions {
operator # operator
value # value
} # }
} # }
} # }
} # }
} # }
} # }
} # }
dataSourceSpecBinding { dataSourceSpecBinding {
settlementDataProperty settlementDataProperty
tradingTerminationProperty tradingTerminationProperty

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,7 @@ export const getNewMarketProposals = (data: ProposalListFieldsFragment[]) =>
export const ProposalsList = () => { export const ProposalsList = () => {
const gridRef = useRef<AgGridReact | null>(null); const gridRef = useRef<AgGridReact | null>(null);
const { data, error } = useProposalsListQuery({ const { data } = useProposalsListQuery({
variables: { variables: {
proposalType: Types.ProposalType.TYPE_NEW_MARKET, proposalType: Types.ProposalType.TYPE_NEW_MARKET,
}, },
@ -40,7 +40,7 @@ export const ProposalsList = () => {
defaultColDef={defaultColDef} defaultColDef={defaultColDef}
getRowId={({ data }) => data.id} getRowId={({ data }) => data.id}
style={{ width: '100%', height: '100%' }} style={{ width: '100%', height: '100%' }}
overlayNoRowsTemplate={error ? error.message : t('No markets')} overlayNoRowsTemplate={t('No markets')}
/> />
</div> </div>
); );