Skip to content

Commit

Permalink
Fix item choice choices displaying as broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Mar 21, 2024
1 parent 4a7414c commit d20e67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/documents/advancement/item-choice.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class ItemChoiceAdvancement extends ItemGrantAdvancement {
summaryForLevel(level, { configMode=false }={}) {
const items = this.value.added?.[level];
if ( !items || configMode ) return "";
return Object.values(items).reduce((html, i) => html + game.dnd5e.utils.linkForUuid(i.uuid), "");
return Object.values(items).reduce((html, uuid) => html + game.dnd5e.utils.linkForUuid(uuid), "");
}

/* -------------------------------------------- */
Expand Down

0 comments on commit d20e67a

Please sign in to comment.