Skip to content

Commit

Permalink
Update dataIndex for package_id to match API response
Browse files Browse the repository at this point in the history
Signed-off-by: xichen1 <[email protected]>
  • Loading branch information
xichen1 committed Dec 14, 2023
1 parent d26e8b5 commit 17e6dc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dashboard/src/pages/ChainCode/ChainCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class ChainCode extends PureComponent {
const { node } = values;
const formData = new FormData();
formData.append('peer_uuid', node);
formData.append('chaincode_package', operatedRow.packageID);
formData.append('chaincode_package', operatedRow.package_id);

dispatch({
type: 'chainCode/installChainCode',
Expand Down Expand Up @@ -359,7 +359,7 @@ class ChainCode extends PureComponent {
id: 'app.chainCode.table.header.packageID',
defaultMessage: 'PackageID',
}),
dataIndex: 'packageID',
dataIndex: 'package_id',
ellipsis: true,
},
{
Expand Down Expand Up @@ -425,14 +425,14 @@ class ChainCode extends PureComponent {
// TODO: remove dummy data after API is connected
const dummyList = [
{
packageID: 'cc1v1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873',
package_id: 'cc1v1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873',
description: 'chaincode demo',
version: 'v1',
language: 'golang',
approve: false,
},
{
packageID: 'cc2v1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873',
package_id: 'cc2v1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873',
description: 'chaincode demo',
version: 'v1',
language: 'golang',
Expand Down

0 comments on commit 17e6dc7

Please sign in to comment.