mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
null guard if list was never set
This commit is contained in:
parent
d7a8b1616a
commit
d6645cbba9
@ -55,8 +55,10 @@ export class ListView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unmount() {
|
unmount() {
|
||||||
|
if (this._list) {
|
||||||
this._unloadList();
|
this._unloadList();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_onClick(event) {
|
_onClick(event) {
|
||||||
if (event.target === this._root) {
|
if (event.target === this._root) {
|
||||||
|
Loading…
Reference in New Issue
Block a user