diff --git a/module/system/dialogs/learningDialog.mjs b/module/system/dialogs/learningDialog.mjs index 0acb372..9f641bc 100644 --- a/module/system/dialogs/learningDialog.mjs +++ b/module/system/dialogs/learningDialog.mjs @@ -182,7 +182,9 @@ export default class LearningDialog extends HandlebarsApplicationMixin(foundry.a } #getSpecialtyName() { - return this.#el.querySelector("#specialty-name")?.value?.trim() || game.i18n.localize("ITEMS.new_specialty"); + // Le dialogue peut avoir été fermé pendant le jet (this.#el null). + const el = this.#el?.querySelector("#specialty-name"); + return el?.value?.trim() || game.i18n.localize("ITEMS.new_specialty"); } #compute() {