From 9dc438c391d17d4db66737e60f2d0ba6a2a2aac6 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 27 Aug 2016 22:15:30 +0200 Subject: [PATCH] client/expanders: fix setting empty expander title --- client/js/controls/expander_control.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/js/controls/expander_control.js b/client/js/controls/expander_control.js index a07367a7..beb0e69a 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() {