From e91d67563f99c08a56e77ca914aaf8666404f1d8 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Wed, 31 Aug 2022 10:28:47 +0200 Subject: [PATCH] [Editor] Avoid to update default params too early --- src/display/editor/tools.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display/editor/tools.js b/src/display/editor/tools.js index bc75a0a71..d214d9eb3 100644 --- a/src/display/editor/tools.js +++ b/src/display/editor/tools.js @@ -658,6 +658,10 @@ class AnnotationEditorUIManager { * @param {*} value */ updateParams(type, value) { + if (!this.#editorTypes) { + return; + } + for (const editor of this.#selectedEditors) { editor.updateParams(type, value); }