change the field name

This commit is contained in:
liangping 2023-10-28 09:04:47 +08:00
parent 21ff37aac1
commit f4732ec594
2 changed files with 4 additions and 4 deletions

View File

@ -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];
};
}
})

View File

@ -28,7 +28,7 @@ export interface GovProposal {
'@type': string;
title?: string;
description?: string;
origin?: any[]
current?: any[];
changes?: any[];
plan?: {
height?: string | number;