change the field name
This commit is contained in:
parent
21ff37aac1
commit
f4732ec594
@ -45,10 +45,10 @@ store.fetchProposal(props.proposal_id).then((res) => {
|
||||
proposalDetail.content?.changes.forEach((item) => {
|
||||
chainStore.rpc.getParams(item.subspace, item.key).then((res) => {
|
||||
if(proposal.value.content && res.param) {
|
||||
if(proposal.value.content.origin){
|
||||
proposal.value.content.origin.push(res.param);
|
||||
if(proposal.value.content.current){
|
||||
proposal.value.content.current.push(res.param);
|
||||
} else {
|
||||
proposal.value.content.origin = [res.param];
|
||||
proposal.value.content.current = [res.param];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
@ -28,7 +28,7 @@ export interface GovProposal {
|
||||
'@type': string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
origin?: any[]
|
||||
current?: any[];
|
||||
changes?: any[];
|
||||
plan?: {
|
||||
height?: string | number;
|
||||
|
Loading…
Reference in New Issue
Block a user