Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/page-blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithsimons authored Jan 4, 2024
2 parents 3f639d7 + dfdb7bf commit 8fcc09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContractsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function ContractsTable({ type, title, subtitle }: IContractsTable) {
field: 'assetId',
flex: 1,
headerName: t('content.contractHistory.columns.assetId'),
valueGetter: ({ row }) => row.contractAgreementInfo,
valueGetter: ({ row }) => row?.contractAgreementInfo?.assetId,
valueFormatter: ({ value }) => value?.assetId,
renderCell: ({ row }) => (
<Tooltips tooltipPlacement="top-start" tooltipArrow={false} tooltipText={row?.contractAgreementInfo?.assetId}>
Expand Down Expand Up @@ -111,7 +111,7 @@ function ContractsTable({ type, title, subtitle }: IContractsTable) {
headerName: t('content.contractHistory.columns.contractSigningDate'),
sortingOrder: ['asc', 'desc'],
sortComparator: (v1, v2, param1: GridValidRowModel, param2: GridValidRowModel) => param2.id - param1.id,
valueGetter: ({ row }) => row.contractAgreementInfo,
valueGetter: ({ row }) => convertEpochToDate(row.contractAgreementInfo?.contractSigningDate),
valueFormatter: ({ value }) => convertEpochToDate(value?.contractSigningDate),
renderCell: ({ row }) =>
row.contractAgreementInfo?.contractSigningDate ? (
Expand Down
1 change: 1 addition & 0 deletions src/helpers/RouteHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import { ReactElement } from 'react';

import About from '../pages/About';
Expand Down

0 comments on commit 8fcc09f

Please sign in to comment.