Skip to content

Commit

Permalink
fix: item not in items.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zaigie committed Apr 18, 2024
1 parent 7b5ffb4 commit 83a8d75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/src/views/PcHome/component/PlayerDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,15 @@ const mergeItems = () => {
const frontendItem = palItems[locale.value].find(
(frontItem) => frontItem.id === item.ItemId
);
if (!frontendItem) {
return {
...item,
id: item.ItemId,
name: item.ItemId,
description: "No description.",
key: item.ItemId,
};
}
return {
...item,
id: frontendItem.id,
Expand Down

0 comments on commit 83a8d75

Please sign in to comment.