Skip to content

Commit

Permalink
null check added
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithsimons committed Dec 20, 2023
1 parent f0ec9bb commit 500b0ec
Showing 1 changed file with 2 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

0 comments on commit 500b0ec

Please sign in to comment.