diff --git a/src/components/views/elements/ImageView.js b/src/components/views/elements/ImageView.js index db23e91b8f..91dbdc4a11 100644 --- a/src/components/views/elements/ImageView.js +++ b/src/components/views/elements/ImageView.js @@ -72,7 +72,7 @@ module.exports = React.createClass({ if(this.props.name) { name = this.props.name; } else if(this.props.mxEvent) { - name = props.mxEvent.getContent().body; + name = this.props.mxEvent.getContent().body; } else { name = null; }