diff --git a/src/module/item/nested-objects.js b/src/module/item/nested-objects.js index b428b85c..922a5167 100644 --- a/src/module/item/nested-objects.js +++ b/src/module/item/nested-objects.js @@ -197,10 +197,13 @@ export async function getNestedItemData(nestedData) { // Remember user selection & enrich description itemData.selected = nestedData.selected + itemData.system.enrichedDescription = await TextEditor.enrichHTML(itemData?.system?.description, { + aync: true}) + itemData.system.enrichedDescriptionUnrolled = await enrichHTMLUnrolled(itemData?.system?.description) - // Keep the quantity previously stored, if any - itemData.system.quantity = nestedData?.system?.quantity ?? itemData.system.quantity + // Keep the quantity previously stored, if any + itemData.system.quantity = nestedData?.system?.quantity ?? itemData.system.quantity // Return only the data // Warning: here the implicit assertion is that entity is an Item and not an Actor or something else diff --git a/src/templates/item/partial/item-contents.hbs b/src/templates/item/partial/item-contents.hbs index 75dc8f14..93d8db83 100644 --- a/src/templates/item/partial/item-contents.hbs +++ b/src/templates/item/partial/item-contents.hbs @@ -33,7 +33,7 @@ {{#if content.system.description}} {{/if}}