change the field name

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

No files matched your search

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