mirror of https://github.com/vector-im/riot-web
Check for valid reference.
parent
67f755efcb
commit
c8f9586c9b
|
@ -90,7 +90,9 @@ export default class Stickerpicker extends React.Component {
|
|||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
dis.unregister(this.dispatcherRef);
|
||||
if (this.dispatcherRef) {
|
||||
dis.unregister(this.dispatcherRef);
|
||||
}
|
||||
}
|
||||
|
||||
_imError(errorMsg, e) {
|
||||
|
|
Loading…
Reference in New Issue