mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
fix NPE on getEventTileOps
This commit is contained in:
parent
3fd9b29422
commit
21fd5078f9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue