diff --git a/module/applications/ui/itemBrowser.mjs b/module/applications/ui/itemBrowser.mjs index f6235101..2d2e8cdc 100644 --- a/module/applications/ui/itemBrowser.mjs +++ b/module/applications/ui/itemBrowser.mjs @@ -251,10 +251,10 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) { /* If any noticeable slowdown occurs, consider replacing with enriching description on clicking to expand descriptions */ for (const item of this.items) { - if (["weapon", "armor"].includes(item.type)) { + if (['weapon', 'armor'].includes(item.type)) { item.system.enrichedTags = await foundry.applications.handlebars.renderTemplate( - 'systems/daggerheart/templates/sheets/global/partials/item-tags.hbs', - item.system, + 'systems/daggerheart/templates/ui/itemBrowser/item-tags.hbs', + { item: item.system } ); } item.system.enrichedDescription = diff --git a/system.json b/system.json index 4bd0f863..ec2a480a 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "1.9.2", + "version": "1.9.3", "compatibility": { "minimum": "13.346", "verified": "13.351", diff --git a/templates/ui/itemBrowser/item-tags.hbs b/templates/ui/itemBrowser/item-tags.hbs new file mode 100644 index 00000000..ba2d39de --- /dev/null +++ b/templates/ui/itemBrowser/item-tags.hbs @@ -0,0 +1,2 @@ +{{#> "systems/daggerheart/templates/sheets/global/partials/item-tags.hbs" item }} +{{/"systems/daggerheart/templates/sheets/global/partials/item-tags.hbs"}}