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) => {
|
proposalDetail.content?.changes.forEach((item) => {
|
||||||
chainStore.rpc.getParams(item.subspace, item.key).then((res) => {
|
chainStore.rpc.getParams(item.subspace, item.key).then((res) => {
|
||||||
if(proposal.value.content && res.param) {
|
if(proposal.value.content && res.param) {
|
||||||
if(proposal.value.content.origin){
|
if(proposal.value.content.current){
|
||||||
proposal.value.content.origin.push(res.param);
|
proposal.value.content.current.push(res.param);
|
||||||
} else {
|
} else {
|
||||||
proposal.value.content.origin = [res.param];
|
proposal.value.content.current = [res.param];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -28,7 +28,7 @@ export interface GovProposal {
|
|||||||
'@type': string;
|
'@type': string;
|
||||||
title?: string;
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
origin?: any[]
|
current?: any[];
|
||||||
changes?: any[];
|
changes?: any[];
|
||||||
plan?: {
|
plan?: {
|
||||||
height?: string | number;
|
height?: string | number;
|
||||||
|
Loading…
Reference in New Issue
Block a user