fix bug fetch data
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m35s

This commit is contained in:
2025-08-15 23:43:07 +07:00
parent e2450aa39c
commit 2b1d0b39a6
8 changed files with 9304 additions and 247 deletions

View File

@@ -8,7 +8,6 @@ import useUserDataStore from "@/stores/userDataStore";
import useMonsterStore from "@/stores/monsterStore";
import Image from "next/image";
import cloneDeep from 'lodash/cloneDeep'
import { useTranslations } from "next-intl";
import { MonsterStore } from "@/types";
@@ -99,6 +98,7 @@ export default function PeakBar() {
mapPEAKInfo,
])
if (!PEAKEvent) return null
return (
<div className="container mx-auto px-4 py-8 relative">
@@ -106,8 +106,11 @@ export default function PeakBar() {
{/* Title Card */}
<div className="rounded-xl p-4 mb-2 border border-warning">
<div className="mb-4 w-full">
{PEAKEvent.map((peak) => (
<div key={peak.id}>{peak.id}</div>
))}
<SelectCustomText
customSet={PEAKEvent.filter(peak => peak.lang.get(locale)).map((peak) => ({
customSet={PEAKEvent.map((peak) => ({
id: peak.id,
name: `${getLocaleName(locale, peak)} (${peak.id}) `,
}))}