diff --git a/src/skins/vector/views/molecules/MNoticeTile.js b/src/skins/vector/views/molecules/MNoticeTile.js index d173c728..a0cedb1d 100644 --- a/src/skins/vector/views/molecules/MNoticeTile.js +++ b/src/skins/vector/views/molecules/MNoticeTile.js @@ -36,6 +36,7 @@ module.exports = React.createClass({ render: function() { var content = this.props.mxEvent.getContent(); var originalBody = content.body; + var body; if (this.props.searchTerm) { var lastOffset = 0; diff --git a/src/skins/vector/views/molecules/MTextTile.js b/src/skins/vector/views/molecules/MTextTile.js index 626ee5b9..12bafa37 100644 --- a/src/skins/vector/views/molecules/MTextTile.js +++ b/src/skins/vector/views/molecules/MTextTile.js @@ -36,6 +36,7 @@ module.exports = React.createClass({ render: function() { var content = this.props.mxEvent.getContent(); var originalBody = content.body; + var body; if (this.props.searchTerm) { var lastOffset = 0;