fix(list): character details hidden cause talent level retrieval error
Build and Deploy / build-and-deploy (push) Successful in 54m7s
Build and Deploy / build-and-deploy (push) Successful in 54m7s
This commit is contained in:
@@ -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:
|
||||||
|
avatarInfoList?.find(
|
||||||
(e) => e.avatar.avatarId === a.avatar.avatarId,
|
(e) => e.avatar.avatarId === a.avatar.avatarId,
|
||||||
)!.talentIdList?.length,
|
)!.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)]">
|
||||||
|
|||||||
Reference in New Issue
Block a user