fix context menu on tiles without widgets

pull/21833/head
Matthew Hodgson 2016-04-12 18:32:46 +01:00
parent a01e6d46b9
commit 6a6739e0f3
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ module.exports = React.createClass({
},
getEventTileOps: function() {
return this.refs.body ? this.refs.body.getEventTileOps() : null;
return this.refs.body && this.refs.body.getEventTileOps ? this.refs.body.getEventTileOps() : null;
},
render: function() {