Check for valid reference.
This commit is contained in:
parent
67f755efcb
commit
c8f9586c9b
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ export default class Stickerpicker extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
dis.unregister(this.dispatcherRef);
|
if (this.dispatcherRef) {
|
||||||
|
dis.unregister(this.dispatcherRef);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_imError(errorMsg, e) {
|
_imError(errorMsg, e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue