From 727db74545bc443d4e3e9047356eb7f6e495e39e Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Mon, 23 Jan 2023 20:50:48 +0100 Subject: [PATCH] Update sheet --- module/actor/actor-sheet.js | 4 ++-- system.json | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 43157f3..7360b54 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -153,8 +153,8 @@ export class BoLActorSheet extends ActorSheet { formData.bougette = this.actor.getBougette() formData.charType = this.actor.getCharType() formData.villainy = this.actor.getVillainy() - formData.biography = await TextEditor.enrichHTML(this.object.system.details.biography, {async: true}) - formData.notes = await TextEditor.enrichHTML(this.object.system.details.notes, {async: true}) + formData.biography = await TextEditor.enrichHTML(this.object.system.details?.biography || "", {async: true}) + formData.notes = await TextEditor.enrichHTML(this.object.system.details.notes || "", {async: true}) formData.isSorcerer = this.actor.isSorcerer() formData.isAlchemist = this.actor.isAlchemist() formData.isAstrologer = this.actor.isAstrologer() diff --git a/system.json b/system.json index 72ae92b..3033c83 100644 --- a/system.json +++ b/system.json @@ -17,8 +17,7 @@ "version": "10.5.2", "compatibility": { "minimum": "10", - "verified": "10", - "maximum": "10" + "verified": "10" }, "esmodules": [ "module/bol.js" @@ -209,4 +208,4 @@ "gridUnits": "m", "primaryTokenAttribute": "resources.hp", "secondaryTokenAttribute": "resources.hero" -} \ No newline at end of file +}