client/expanders: fix setting empty expander title

This commit is contained in:
rr- 2016-08-27 22:15:30 +02:00
parent 63ec28ddb3
commit 9dc438c391

View file

@ -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() {