From 39213bb71eef77c1c136ad465bf8a78ade18fcfa Mon Sep 17 00:00:00 2001 From: kurihada Date: Wed, 25 Feb 2026 13:11:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Restaurant=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E7=9A=84=20TypeScript=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/profile/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index 041af5b..dc8a67d 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -27,7 +27,7 @@ import type { UserProfile, UserPreferences, DecisionRecord, FavoriteRecord, Rest function firstImage(r: Restaurant): string { if (r.images?.length > 0) return r.images[0]; // backward compat: old DB records may have `image` instead of `images` - const legacy = (r as Record).image; + const legacy = (r as unknown as Record).image; return typeof legacy === "string" ? legacy : ""; }