From c37c68e6db53b7a4b98e5a9f3e86c3f3d3a71412 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 21 Sep 2022 16:47:34 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20erreur=20quand=20la=20fen=C3=AAtre=20est?= =?UTF-8?q?=20ferm=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Erreur dans les logs, par exemple, suite à une rencontre --- module/rdd-tmr-dialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index 7ff6d0c3..d39e9bd6 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -250,6 +250,9 @@ export class RdDTMRDialog extends Dialog { /* -------------------------------------------- */ async updateValuesDisplay() { + if (!this.rendered) { + return; + } const coord = this._getActorCoord(); HtmlUtility._showControlWhen($(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));