diff --git a/module/dialog-chronologie.js b/module/dialog-chronologie.js index 0e84e358..d7ec467e 100644 --- a/module/dialog-chronologie.js +++ b/module/dialog-chronologie.js @@ -27,7 +27,8 @@ export class DialogChronologie extends Dialog { dateReel: DialogChronologie.getCurrentDateTime() }; const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-chronologie.html", dialogData); - new DialogChronologie(html).render(true); + const dialog = new DialogChronologie(html); + dialog.render(true); } constructor(html) { diff --git a/module/dialog-repos.js b/module/dialog-repos.js index f3030899..324b6d91 100644 --- a/module/dialog-repos.js +++ b/module/dialog-repos.js @@ -3,9 +3,9 @@ import { Misc } from "./misc.js"; export class DialogRepos extends Dialog { static async create(actor) { - let actorData = actor - const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actorData); - new DialogRepos(html, actor).render(true); + const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actor); + const dialog = new DialogRepos(html, actor); + dialog.render(true); } constructor(html, actor) {