mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-09 11:21:33 +01:00
fix NPE on getEventTileOps
This commit is contained in:
parent
3fd9b29422
commit
21fd5078f9
@ -137,7 +137,7 @@ module.exports = React.createClass({
|
||||
mxEvent: this.props.mxEvent,
|
||||
left: x,
|
||||
top: y,
|
||||
eventTileOps: this.refs.tile ? this.refs.tile.getEventTileOps() : undefined,
|
||||
eventTileOps: this.refs.tile && this.refs.tile.getEventTileOps ? this.refs.tile.getEventTileOps() : undefined,
|
||||
onFinished: function() {
|
||||
self.setState({menu: false});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user