Commit b0ac0429 by t0ng7u

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
parent d17b566b
......@@ -183,6 +183,9 @@ function CommonLogsCard<TData>({
const modelCell = cells.get('model_name')
const quotaCell = cells.get('quota')
const rowData = cells.get('created_at')?.row.original as
| Record<string, unknown>
| undefined
return (
<div className='space-y-2.5'>
......@@ -200,8 +203,8 @@ function CommonLogsCard<TData>({
{t('Time')}
</div>
<MobileLogTimeStatus
createdAt={cells.get('created_at')?.row.original?.created_at}
type={cells.get('created_at')?.row.original?.type}
createdAt={rowData?.created_at}
type={rowData?.type}
/>
</div>
<SummaryField
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment