mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +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,
|
mxEvent: this.props.mxEvent,
|
||||||
left: x,
|
left: x,
|
||||||
top: y,
|
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() {
|
onFinished: function() {
|
||||||
self.setState({menu: false});
|
self.setState({menu: false});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user