client/expanders: fix setting empty expander title
This commit is contained in:
parent
63ec28ddb3
commit
9dc438c391
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue