fix(web): resolve TypeScript errors in usage logs mobile card
Cast row.original to Record<string, unknown> before accessing created_at and type in CommonLogsCard, matching the pattern used elsewhere in the same component. Close: #5243
This commit is contained in:
@@ -183,6 +183,9 @@ function CommonLogsCard<TData>({
|
|||||||
|
|
||||||
const modelCell = cells.get('model_name')
|
const modelCell = cells.get('model_name')
|
||||||
const quotaCell = cells.get('quota')
|
const quotaCell = cells.get('quota')
|
||||||
|
const rowData = cells.get('created_at')?.row.original as
|
||||||
|
| Record<string, unknown>
|
||||||
|
| undefined
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='space-y-2.5'>
|
<div className='space-y-2.5'>
|
||||||
@@ -200,8 +203,8 @@ function CommonLogsCard<TData>({
|
|||||||
{t('Time')}
|
{t('Time')}
|
||||||
</div>
|
</div>
|
||||||
<MobileLogTimeStatus
|
<MobileLogTimeStatus
|
||||||
createdAt={cells.get('created_at')?.row.original?.created_at}
|
createdAt={rowData?.created_at}
|
||||||
type={cells.get('created_at')?.row.original?.type}
|
type={rowData?.type}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<SummaryField
|
<SummaryField
|
||||||
|
|||||||
Reference in New Issue
Block a user