Skip to content

Commit

Permalink
Merge pull request #613 from xiaor2/xiaor2
Browse files Browse the repository at this point in the history
Fixed the chaincode information display issue
  • Loading branch information
xiaor2 authored Apr 22, 2024
2 parents c0457dc + b060be0 commit 9cffad3
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 9cffad3

Please sign in to comment.