fix(list): character details hidden cause talent level retrieval error
Build and Deploy / build-and-deploy (push) Successful in 54m7s

This commit is contained in:
2026-06-20 22:58:59 +07:00 Unverified
parent 102ce465e5
commit 5f575b5d53
+5 -3
View File
@@ -227,9 +227,11 @@ export async function ListPage(
.map((a) => ({ .map((a) => ({
a, a,
c: avatars[a.avatar.avatarId], c: avatars[a.avatar.avatarId],
cons: avatarInfoList!.find( cons:
(e) => e.avatar.avatarId === a.avatar.avatarId, avatarInfoList?.find(
)!.talentIdList?.length, (e) => e.avatar.avatarId === a.avatar.avatarId,
)!.talentIdList?.length ??
(a as unknown as { talentLevel?: number }).talentLevel,
})) }))
.map(({ a, c, cons }) => ( .map(({ a, c, cons }) => (
<div tw="relative flex flex-col rounded-[.3em] overflow-hidden shadow-[0_.08em_.35em_rgba(0,0,0,.18)]"> <div tw="relative flex flex-col rounded-[.3em] overflow-hidden shadow-[0_.08em_.35em_rgba(0,0,0,.18)]">