mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
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
@ -538,7 +538,9 @@ export default class SendMessageComposer extends React.Component {
|
||||
}
|
||||
|
||||
onChange = () => {
|
||||
this.props.onIsEmptyChanged(this.model.isEmpty);
|
||||
if (this.props.onIsEmptyChanged) {
|
||||
this.props.onIsEmptyChanged(this.model.isEmpty);
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user