forked from PolarisPyra/daphnis
fixed type error
This commit is contained in:
parent
ff648ebf93
commit
bac288298b
@ -73,9 +73,7 @@ export async function getMapIcons() {
|
||||
},
|
||||
});
|
||||
|
||||
const unlockedMapIcons = checkIfMapIconIsUnlocked.map((item) =>
|
||||
Number(item.itemId),
|
||||
);
|
||||
const unlockedMapIcons = checkIfMapIconIsUnlocked.map((item) => item.itemId);
|
||||
|
||||
const AllMapIcons = await artemis.cozynet_chuni_static_mapicon.findMany({
|
||||
select: {
|
||||
@ -92,7 +90,7 @@ export async function getMapIcons() {
|
||||
const currentlyUnlockedMapIcons = Array.from(
|
||||
new Map(
|
||||
AllMapIcons.filter((matchingMapIconIds) =>
|
||||
unlockedMapIcons.includes(matchingMapIconIds.id),
|
||||
unlockedMapIcons.includes(Number(matchingMapIconIds.id)),
|
||||
).map((unlockedMapIconIds) => [
|
||||
unlockedMapIconIds.id,
|
||||
unlockedMapIconIds,
|
||||
|
Loading…
Reference in New Issue
Block a user