Skip to content

Commit

Permalink
Fixed the chaincode information display issue
Browse files Browse the repository at this point in the history
Signed-off-by: xiaor2 <[email protected]>
  • Loading branch information
xiaor2 committed Apr 22, 2024
1 parent c0457dc commit b060be0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/dashboard/src/pages/ChainCode/ChainCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class ChainCode extends PureComponent {
id: 'app.chainCode.table.header.packageID',
defaultMessage: 'PackageID',
}),
dataIndex: 'packageID',
dataIndex: 'package_id',
ellipsis: true,
},
{
Expand Down Expand Up @@ -397,15 +397,6 @@ class ChainCode extends PureComponent {
},
];
// TODO: remove dummy data after API is connected
const dummyList = [
{
packageID: 'cc1v1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873',
description: 'chaincode demo',
version: 'v1',
language: 'golang',
approve: false,
},
];
const dummyPagination = {
total: 0,
current: 1,
Expand Down Expand Up @@ -437,7 +428,7 @@ class ChainCode extends PureComponent {
rowKey="id"
// TODO: remove length check after API is connected
data={{
list: chainCodes.length !== 0 ? chainCodes : dummyList,
list: chainCodes,
pagination: chainCodes.length !== 0 ? paginations : dummyPagination,
}}
columns={columns}
Expand Down

0 comments on commit b060be0

Please sign in to comment.