diff --git a/client/js/controls/expander_control.js b/client/js/controls/expander_control.js index a07367a..beb0e69 100644 --- a/client/js/controls/expander_control.js +++ b/client/js/controls/expander_control.js @@ -40,7 +40,11 @@ class ExpanderControl { } set title(newTitle) { - this._expanderNode.querySelector('header span').textContent = newTitle; + if (this._expanderNode) { + this._expanderNode + .querySelector('header span') + .textContent = newTitle; + } } get _isOpened() {