Skip to content

Commit

Permalink
fix: Skins for an item can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Jun 23, 2024
1 parent 0ca5a59 commit 8a514c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ItemConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default class ItemConfig {
constructor(config) {
/**
* Array of unique names for the skins applied to item
* @type {Array<String>}
* @type {Array<String> | undefined}
*/
this.skins = config.Skins.filter(Boolean).map((s) => new Skin({ ItemType: s }));
this.skins = config.Skins?.filter(Boolean).map((s) => new Skin({ ItemType: s }));

/**
* Array of PVP unique name upgrades applied
Expand Down
2 changes: 1 addition & 1 deletion test/data/OrnsteinTheSlayer.json

Large diffs are not rendered by default.

0 comments on commit 8a514c7

Please sign in to comment.