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:
t0ng7u
2026-06-03 12:37:36 +08:00
parent d17b566bcc
commit b0ac0429cf
@@ -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