You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03: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:
@@ -538,7 +538,9 @@ export default class SendMessageComposer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onChange = () => {
|
onChange = () => {
|
||||||
this.props.onIsEmptyChanged(this.model.isEmpty);
|
if (this.props.onIsEmptyChanged) {
|
||||||
|
this.props.onIsEmptyChanged(this.model.isEmpty);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user