Check if the method is defined before calling it
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
2b4859a858
commit
97f5b6920c
1 changed files with 3 additions and 1 deletions
|
@ -538,8 +538,10 @@ export default class SendMessageComposer extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onChange = () => {
|
onChange = () => {
|
||||||
|
if (this.props.onIsEmptyChanged) {
|
||||||
this.props.onIsEmptyChanged(this.model.isEmpty);
|
this.props.onIsEmptyChanged(this.model.isEmpty);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue