From b0ac0429cf32f681c4c5a616e4f223ee05495792 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Wed, 3 Jun 2026 12:37:36 +0800 Subject: [PATCH] fix(web): resolve TypeScript errors in usage logs mobile card Cast row.original to Record before accessing created_at and type in CommonLogsCard, matching the pattern used elsewhere in the same component. Close: #5243 --- .../usage-logs/components/usage-logs-mobile-card.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/default/src/features/usage-logs/components/usage-logs-mobile-card.tsx b/web/default/src/features/usage-logs/components/usage-logs-mobile-card.tsx index 4a6eb0eb..a64834f1 100644 --- a/web/default/src/features/usage-logs/components/usage-logs-mobile-card.tsx +++ b/web/default/src/features/usage-logs/components/usage-logs-mobile-card.tsx @@ -183,6 +183,9 @@ function CommonLogsCard({ const modelCell = cells.get('model_name') const quotaCell = cells.get('quota') + const rowData = cells.get('created_at')?.row.original as + | Record + | undefined return (
@@ -200,8 +203,8 @@ function CommonLogsCard({ {t('Time')}