mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08: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…
Reference in New Issue
Block a user