fix NPE on getEventTileOps

This commit is contained in:
Matthew Hodgson 2016-04-14 15:50:00 +01:00
parent 3fd9b29422
commit 21fd5078f9

View file

@ -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});
} }