fix(governance,trading): proposals not showing (#4222)
Co-authored-by: sam-keen <samuel.kleinmann@gmail.com>
This commit is contained in:
parent
f6fc4df1c5
commit
fc6ce9e99b
@ -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
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user